Index: test/mjsunit/wasm/table.js |
diff --git a/test/mjsunit/wasm/table.js b/test/mjsunit/wasm/table.js |
index 54847206229300f986b5bff2dc3633339d3716c6..2eca796af2cc912e45b95dddd519abbc3a7b9b57 100644 |
--- a/test/mjsunit/wasm/table.js |
+++ b/test/mjsunit/wasm/table.js |
@@ -153,7 +153,7 @@ function assertTableIsValid(table) { |
(function TestSet() { |
let builder = new WasmModuleBuilder; |
builder.addExport("wasm", builder.addFunction("", kSig_v_v)); |
- builder.addExport("host", builder.addImportWithModule("test", "f", kSig_v_v)); |
+ builder.addExport("host", builder.addImport("test", "f", kSig_v_v)); |
let {wasm, host} = builder.instantiate({test: {f() {}}}).exports; |
let table = new WebAssembly.Table({element: "anyfunc", initial: 10}); |
@@ -201,7 +201,7 @@ function assertTableIsValid(table) { |
(function TestIndexing() { |
let builder = new WasmModuleBuilder; |
builder.addExport("wasm", builder.addFunction("", kSig_v_v)); |
- builder.addExport("host", builder.addImportWithModule("test", "f", kSig_v_v)); |
+ builder.addExport("host", builder.addImport("test", "f", kSig_v_v)); |
let {wasm, host} = builder.instantiate({test: {f() {}}}).exports; |
let table = new WebAssembly.Table({element: "anyfunc", initial: 10}); |
@@ -224,7 +224,7 @@ function assertTableIsValid(table) { |
(function TestGrow() { |
let builder = new WasmModuleBuilder; |
builder.addExport("wasm", builder.addFunction("", kSig_v_v)); |
- builder.addExport("host", builder.addImportWithModule("test", "f", kSig_v_v)); |
+ builder.addExport("host", builder.addImport("test", "f", kSig_v_v)); |
let {wasm, host} = builder.instantiate({test: {f() {}}}).exports; |
function init(table) { |