Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Unified Diff: test/mjsunit/wasm/export-table.js

Issue 2591753002: [wasm] Implement correct 2-level namespace for imports. (Closed)
Patch Set: Fix debug tests Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/wasm/exceptions.js ('k') | test/mjsunit/wasm/ffi.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/mjsunit/wasm/exceptions.js ('k') | test/mjsunit/wasm/ffi.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698