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

Unified Diff: test/mjsunit/wasm/compiled-module-serialization.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/compiled-module-management.js ('k') | test/mjsunit/wasm/data-segments.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/compiled-module-serialization.js
diff --git a/test/mjsunit/wasm/compiled-module-serialization.js b/test/mjsunit/wasm/compiled-module-serialization.js
index eb6534d0a8837bac0ab3cafd655b8823b314e6dc..2ae198949f9eb635c4ce44ae508aaefe2efa0723 100644
--- a/test/mjsunit/wasm/compiled-module-serialization.js
+++ b/test/mjsunit/wasm/compiled-module-serialization.js
@@ -12,8 +12,8 @@ load("test/mjsunit/wasm/wasm-module-builder.js");
builder.addMemory(1,1, true);
var kSig_v_i = makeSig([kAstI32], []);
var signature = builder.addType(kSig_v_i);
- builder.addImport("some_value", kSig_i_v);
- builder.addImport("writer", signature);
+ builder.addImport("", "some_value", kSig_i_v);
+ builder.addImport("", "writer", signature);
builder.addFunction("main", kSig_i_i)
.addBody([
@@ -48,8 +48,8 @@ load("test/mjsunit/wasm/wasm-module-builder.js");
view_1[0] = 42;
var outval_1;
- var i1 = new WebAssembly.Instance(module, {some_value: () => 1,
- writer: (x)=>outval_1 = x }, mem_1);
+ var i1 = new WebAssembly.Instance(module, {"": {some_value: () => 1,
+ writer: (x)=>outval_1 = x }}, mem_1);
assertEquals(43, i1.exports.main(0));
« no previous file with comments | « test/mjsunit/wasm/compiled-module-management.js ('k') | test/mjsunit/wasm/data-segments.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698