From d570b60d73772194b8b3a58e58f754eec18a2776 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Thu, 16 Feb 2023 15:33:56 -0800 Subject: [PATCH] [wasm] Exception -> Tag in basic.tentative.any.js This need to change in order to work with #38549, which merged WebAssembly/exception-handling#252. --- wasm/jsapi/exception/basic.tentative.any.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wasm/jsapi/exception/basic.tentative.any.js b/wasm/jsapi/exception/basic.tentative.any.js index 9ddebae0e968a2..acf644f904f53d 100644 --- a/wasm/jsapi/exception/basic.tentative.any.js +++ b/wasm/jsapi/exception/basic.tentative.any.js @@ -14,11 +14,11 @@ promise_test(async () => { const kWasmAnyRef = 0x6f; const kSig_v_r = makeSig([kWasmAnyRef], []); const builder = new WasmModuleBuilder(); - const except = builder.addException(kSig_v_r); + const tagIndex = builder.addTag(kSig_v_r); builder.addFunction("throw_param", kSig_v_r) .addBody([ kExprLocalGet, 0, - kExprThrow, except, + kExprThrow, tagIndex, ]) .exportFunc(); const buffer = builder.toBuffer(); @@ -45,11 +45,11 @@ promise_test(async () => { promise_test(async () => { const builder = new WasmModuleBuilder(); - const except = builder.addException(kSig_v_a); + const tagIndex = builder.addTag(kSig_v_a); builder.addFunction("throw_null", kSig_v_v) .addBody([ kExprRefNull, kWasmAnyFunc, - kExprThrow, except, + kExprThrow, tagIndex, ]) .exportFunc(); const buffer = builder.toBuffer(); @@ -59,11 +59,11 @@ promise_test(async () => { promise_test(async () => { const builder = new WasmModuleBuilder(); - const except = builder.addException(kSig_v_i); + const tagIndex = builder.addTag(kSig_v_i); builder.addFunction("throw_int", kSig_v_v) .addBody([ ...wasmI32Const(7), - kExprThrow, except, + kExprThrow, tagIndex, ]) .exportFunc(); const buffer = builder.toBuffer(); @@ -74,12 +74,12 @@ promise_test(async () => { promise_test(async () => { const builder = new WasmModuleBuilder(); const fnIndex = builder.addImport("module", "fn", kSig_v_v); - const except = builder.addException(kSig_v_r); + const tagIndex= builder.addTag(kSig_v_r); builder.addFunction("catch_exception", kSig_r_v) .addBody([ kExprTry, kWasmStmt, kExprCallFunction, fnIndex, - kExprCatch, except, + kExprCatch, tagIndex, kExprReturn, kExprEnd, kExprRefNull, kWasmAnyRef,