Index: test/mjsunit/wasm/export-table.js |
diff --git a/test/mjsunit/wasm/export-table.js b/test/mjsunit/wasm/export-table.js |
index f715b20f1f049b33f19046624c4c0ed0c2bc1190..7f7c1802819e64a0d393b21017e588b384067288 100644 |
--- a/test/mjsunit/wasm/export-table.js |
+++ b/test/mjsunit/wasm/export-table.js |
@@ -141,11 +141,11 @@ load("test/mjsunit/wasm/wasm-module-builder.js"); |
function js() {} |
- var a = builder.addImport("a", kSig_v_v); |
+ var a = builder.addImport("m", "a", kSig_v_v); |
builder.addExport("f", a); |
builder.addExport("g", a); |
- let instance = builder.instantiate({a: js}); |
+ let instance = builder.instantiate({m: {a: js}}); |
let e = instance.exports; |
assertEquals("function", typeof e.f); |
assertEquals("function", typeof e.g); |
@@ -161,12 +161,12 @@ load("test/mjsunit/wasm/wasm-module-builder.js"); |
function js() {} |
- var a = builder.addImport("a", kSig_v_v); |
- var b = builder.addImport("b", kSig_v_v); |
+ var a = builder.addImport("q", "a", kSig_v_v); |
+ var b = builder.addImport("q", "b", kSig_v_v); |
builder.addExport("f", a); |
builder.addExport("g", b); |
- let instance = builder.instantiate({a: js, b: js}); |
+ let instance = builder.instantiate({q: {a: js, b: js}}); |
let e = instance.exports; |
assertEquals("function", typeof e.f); |
assertEquals("function", typeof e.g); |