Index: test/mjsunit/wasm/table.js |
diff --git a/test/mjsunit/wasm/table.js b/test/mjsunit/wasm/table.js |
index d2b0dcdee6c6d197181eb767f1e3136dbf575b64..2eca796af2cc912e45b95dddd519abbc3a7b9b57 100644 |
--- a/test/mjsunit/wasm/table.js |
+++ b/test/mjsunit/wasm/table.js |
@@ -152,7 +152,7 @@ |
(function TestSet() { |
let builder = new WasmModuleBuilder; |
- builder.addExport("wasm", builder.addFunction("", kSig_v_v).addBody([])); |
+ builder.addExport("wasm", builder.addFunction("", kSig_v_v)); |
builder.addExport("host", builder.addImport("test", "f", kSig_v_v)); |
let {wasm, host} = builder.instantiate({test: {f() {}}}).exports; |
@@ -200,7 +200,7 @@ |
(function TestIndexing() { |
let builder = new WasmModuleBuilder; |
- builder.addExport("wasm", builder.addFunction("", kSig_v_v).addBody([])); |
+ builder.addExport("wasm", builder.addFunction("", kSig_v_v)); |
builder.addExport("host", builder.addImport("test", "f", kSig_v_v)); |
let {wasm, host} = builder.instantiate({test: {f() {}}}).exports; |
@@ -223,7 +223,7 @@ |
(function TestGrow() { |
let builder = new WasmModuleBuilder; |
- builder.addExport("wasm", builder.addFunction("", kSig_v_v).addBody([])); |
+ builder.addExport("wasm", builder.addFunction("", kSig_v_v)); |
builder.addExport("host", builder.addImport("test", "f", kSig_v_v)); |
let {wasm, host} = builder.instantiate({test: {f() {}}}).exports; |