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

Unified Diff: test/mjsunit/wasm/data-segments.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-serialization.js ('k') | test/mjsunit/wasm/errors.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/data-segments.js
diff --git a/test/mjsunit/wasm/data-segments.js b/test/mjsunit/wasm/data-segments.js
index 8cff5e17567620c26ebaf37e1fd81b039899536b..b215f20857e8d359ce7066a50cbff988600d1056 100644
--- a/test/mjsunit/wasm/data-segments.js
+++ b/test/mjsunit/wasm/data-segments.js
@@ -39,7 +39,7 @@ function GlobalImportedInitTest(pad) {
while (pad-- > 0) builder.addGlobal(kAstI32); // pad
- var g = builder.addImportedGlobal("offset", undefined, kAstI32);
+ var g = builder.addImportedGlobal("mod", "offset", kAstI32);
while (pad-- > 0) builder.addGlobal(kAstI32); // pad
@@ -52,7 +52,7 @@ function GlobalImportedInitTest(pad) {
var module = new WebAssembly.Module(buffer);
for (var offset of [0, 12, 192, 1024]) {
- var instance = new WebAssembly.Instance(module, {offset: offset});
+ var instance = new WebAssembly.Instance(module, {mod: {offset: offset}});
for (var i = offset - 20; i < offset + 20; i += 4) {
if (i < 0) continue;
var expected = i == offset ? 84215045 : 0;
« no previous file with comments | « test/mjsunit/wasm/compiled-module-serialization.js ('k') | test/mjsunit/wasm/errors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698