summaryrefslogtreecommitdiff
path: root/test/exception-handling.wast
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-06-18 14:20:03 -0700
committerGitHub <noreply@github.com>2021-06-18 14:20:03 -0700
commit28e88b9f993a2e45662fde0b10920aa22e7b1b7f (patch)
tree77bbd5f1dd1bfcb089b12f6fa9fcf828c135c099 /test/exception-handling.wast
parent97e277c51218778d1d76fd59fed3b4ca7756382e (diff)
downloadbinaryen-28e88b9f993a2e45662fde0b10920aa22e7b1b7f.tar.gz
binaryen-28e88b9f993a2e45662fde0b10920aa22e7b1b7f.tar.bz2
binaryen-28e88b9f993a2e45662fde0b10920aa22e7b1b7f.zip
[EH] Replace event with tag (#3937)
We recently decided to change 'event' to 'tag', and to 'event section' to 'tag section', out of the rationale that the section contains a generalized tag that references a type, which may be used for something other than exceptions, and the name 'event' can be confusing in the web context. See - https://github.com/WebAssembly/exception-handling/issues/159#issuecomment-857910130 - https://github.com/WebAssembly/exception-handling/pull/161
Diffstat (limited to 'test/exception-handling.wast')
-rw-r--r--test/exception-handling.wast12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/exception-handling.wast b/test/exception-handling.wast
index ee5ffbf54..95f177b2d 100644
--- a/test/exception-handling.wast
+++ b/test/exception-handling.wast
@@ -1,8 +1,8 @@
(module
- (event $e-i32 (attr 0) (param i32))
- (event $e-i64 (attr 0) (param i64))
- (event $e-i32-i64 (attr 0) (param i32 i64))
- (event $e-empty (attr 0))
+ (tag $e-i32 (attr 0) (param i32))
+ (tag $e-i64 (attr 0) (param i64))
+ (tag $e-i32-i64 (attr 0) (param i32 i64))
+ (tag $e-empty (attr 0))
(func $foo)
(func $bar)
@@ -18,7 +18,7 @@
)
)
- ;; try-catch with multivalue event
+ ;; try-catch with multivalue tag
(try
(do
(throw $e-i32-i64 (i32.const 0) (i64.const 0))
@@ -197,7 +197,7 @@
(delegate 0)
)
- ;; 'catch' body can be empty when the event's type is none.
+ ;; 'catch' body can be empty when the tag's type is none.
(try
(do)
(catch $e-empty)