diff options
author | Heejin Ahn <aheejin@gmail.com> | 2021-06-18 14:20:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 14:20:03 -0700 |
commit | 28e88b9f993a2e45662fde0b10920aa22e7b1b7f (patch) | |
tree | 77bbd5f1dd1bfcb089b12f6fa9fcf828c135c099 /src/wasm-delegations-fields.def | |
parent | 97e277c51218778d1d76fd59fed3b4ca7756382e (diff) | |
download | binaryen-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 'src/wasm-delegations-fields.def')
-rw-r--r-- | src/wasm-delegations-fields.def | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-delegations-fields.def b/src/wasm-delegations-fields.def index 70676e716..ab68b5206 100644 --- a/src/wasm-delegations-fields.def +++ b/src/wasm-delegations-fields.def @@ -58,7 +58,7 @@ // DELEGATE_FIELD_NAME(id, name) - called for a Name. // // DELEGATE_FIELD_NAME_VECTOR(id, name) - called for a variable-sized vector of -// names (like try's catch event names). If this is not defined, and +// names (like try's catch tag names). If this is not defined, and // DELEGATE_GET_FIELD is, then DELEGATE_FIELD_CHILD is called on them. // // DELEGATE_FIELD_SCOPE_NAME_DEF(id, name) - called for a scope name definition @@ -500,7 +500,7 @@ switch (DELEGATE_ID) { DELEGATE_START(Try); DELEGATE_FIELD_SCOPE_NAME_USE(Try, delegateTarget); DELEGATE_FIELD_CHILD_VECTOR(Try, catchBodies); - DELEGATE_FIELD_NAME_VECTOR(Try, catchEvents); + DELEGATE_FIELD_NAME_VECTOR(Try, catchTags); DELEGATE_FIELD_SCOPE_NAME_DEF(Try, name); DELEGATE_FIELD_CHILD(Try, body); DELEGATE_END(Try); @@ -509,7 +509,7 @@ switch (DELEGATE_ID) { case Expression::Id::ThrowId: { DELEGATE_START(Throw); DELEGATE_FIELD_CHILD_VECTOR(Throw, operands); - DELEGATE_FIELD_NAME(Throw, event); + DELEGATE_FIELD_NAME(Throw, tag); DELEGATE_END(Throw); break; } |