From 28e88b9f993a2e45662fde0b10920aa22e7b1b7f Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Fri, 18 Jun 2021 14:20:03 -0700 Subject: [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 --- test/binaryen.js/exception-handling.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/binaryen.js/exception-handling.js') diff --git a/test/binaryen.js/exception-handling.js b/test/binaryen.js/exception-handling.js index a8d3dd3a4..1f512bbe8 100644 --- a/test/binaryen.js/exception-handling.js +++ b/test/binaryen.js/exception-handling.js @@ -2,7 +2,7 @@ function cleanInfo(info) { var ret = {}; for (var x in info) { // Filter out address pointers and only print meaningful info - if (x == 'id' || x == 'type' || x == 'name' || x == 'event' || + if (x == 'id' || x == 'type' || x == 'name' || x == 'tag' || x == 'target' || x == 'hasCatchAll' || x == 'delegateTarget' || x == 'isDelegate') { ret[x] = info[x]; @@ -19,7 +19,7 @@ var module = new binaryen.Module(); module.setFeatures(binaryen.Features.ReferenceTypes | binaryen.Features.ExceptionHandling); -var event_ = module.addEvent("e", 0, binaryen.i32, binaryen.none); +module.addTag("e", 0, binaryen.i32, binaryen.none); // (try $l0 // (do @@ -52,7 +52,7 @@ var try_catch = module.try( // (do // (try // (do -// (throw $a-event (i32.const 0)) +// (throw $a-tag (i32.const 0)) // ) // (delegate $try_outer) // ) -- cgit v1.2.3