From 3de8c98b682e1347e5c50c58eaddc4b01f3e26ab Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Mon, 11 May 2020 10:51:07 -0700 Subject: Make try body start with 'do' (#2846) In WebAssembly/exception-handling#52, We decided to put `try` bodies in a `do` clause to be more consistent with `catch`. - Before ```wast (try ... (catch ... ) ) ``` - After ```wast (try (do ... ) (catch ... ) ) ``` Another upside of this change is when there are multiple instructions within a `try` body, we no longer need to wrap them in a `block`. --- test/try-body-multiple-insts.wasm.fromBinary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/try-body-multiple-insts.wasm.fromBinary') diff --git a/test/try-body-multiple-insts.wasm.fromBinary b/test/try-body-multiple-insts.wasm.fromBinary index ba243fdfc..1ecbdbbc6 100644 --- a/test/try-body-multiple-insts.wasm.fromBinary +++ b/test/try-body-multiple-insts.wasm.fromBinary @@ -9,7 +9,7 @@ (func $2 (local $0 exnref) (try - (block + (do (call $0) (call $1) ) -- cgit v1.2.3