From e5e94b348657b49ca7cab52bd5be1c890313cddf Mon Sep 17 00:00:00 2001 From: Clemens Backes Date: Tue, 24 Sep 2024 17:19:47 +0200 Subject: [PATCH] wasm-module-builder: Fix left-over use of kWasmStmt #83 This was renamed to kWasmVoid in https://github.com/WebAssembly/memory64/commit/2f5a7c524fdc4dec280c6a53bc3cc800b6ad1c11. --- test/js-api/wasm-module-builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/js-api/wasm-module-builder.js b/test/js-api/wasm-module-builder.js index 4b5abcfbe6..04f19b2785 100644 --- a/test/js-api/wasm-module-builder.js +++ b/test/js-api/wasm-module-builder.js @@ -934,7 +934,7 @@ class WasmModuleBuilder { addTable(type, initial_size, max_size = undefined, init_expr = undefined) { if (type == kWasmI32 || type == kWasmI64 || type == kWasmF32 || - type == kWasmF64 || type == kWasmS128 || type == kWasmStmt) { + type == kWasmF64 || type == kWasmS128 || type == kWasmVoid) { throw new Error('Tables must be of a reference type'); } if (init_expr != undefined) checkExpr(init_expr);