summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-names_optimize-instructions_all-features.wast
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2020-05-14 15:43:57 -0700
committerGitHub <noreply@github.com>2020-05-14 15:43:57 -0700
commit8e73ee0d79c03468ca764adfa4ef869e53dcdff6 (patch)
treebf98e7cf4455377d084659f14c6232581b616c7b /test/passes/remove-unused-names_optimize-instructions_all-features.wast
parent5db77a72a7c62d045e6650e96974fe1455fa1a1a (diff)
downloadbinaryen-8e73ee0d79c03468ca764adfa4ef869e53dcdff6.tar.gz
binaryen-8e73ee0d79c03468ca764adfa4ef869e53dcdff6.tar.bz2
binaryen-8e73ee0d79c03468ca764adfa4ef869e53dcdff6.zip
Make 'do' clause mandatory in 'try' (#2851)
Previously we were able to omit the new syntax `do` when `try` body is empty. This makes `do` clause mandatory, so when a `try` body is empty, the folded text format will be ``` (try (do) (catch ... ) ``` Suggested in https://github.com/WebAssembly/exception-handling/issues/52#issuecomment-626696720.
Diffstat (limited to 'test/passes/remove-unused-names_optimize-instructions_all-features.wast')
-rw-r--r--test/passes/remove-unused-names_optimize-instructions_all-features.wast1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/passes/remove-unused-names_optimize-instructions_all-features.wast b/test/passes/remove-unused-names_optimize-instructions_all-features.wast
index 1c39a9d84..119667f42 100644
--- a/test/passes/remove-unused-names_optimize-instructions_all-features.wast
+++ b/test/passes/remove-unused-names_optimize-instructions_all-features.wast
@@ -64,6 +64,7 @@
(try (result i32)
(do
(try
+ (do)
(catch
(drop (exnref.pop))
(throw $e (i32.const 0))