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