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

Unified Diff: test/mjsunit/wasm/gc-buffer.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/ffi-error.js ('k') | test/mjsunit/wasm/gc-frame.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/gc-buffer.js
diff --git a/test/mjsunit/wasm/gc-buffer.js b/test/mjsunit/wasm/gc-buffer.js
index d33695532a0369e4716b691f4f33e7dffdfd5456..6bcf299d8b4ac9f55674f53a63abe69686153732 100644
--- a/test/mjsunit/wasm/gc-buffer.js
+++ b/test/mjsunit/wasm/gc-buffer.js
@@ -12,7 +12,7 @@ function run(f) {
// the module (i.e. the underlying array buffer of WASM wire bytes dies).
var module = (() => {
var builder = new WasmModuleBuilder();
- builder.addImport("the_name_of_my_import", kSig_i_i);
+ builder.addImport("mod", "the_name_of_my_import", kSig_i_i);
builder.addFunction("main", kSig_i_i)
.addBody([
kExprGetLocal, 0,
@@ -25,7 +25,7 @@ function run(f) {
gc();
for (var i = 0; i < 10; i++) {
print(" instance " + i);
- var instance = new WebAssembly.Instance(module, {the_name_of_my_import: f});
+ var instance = new WebAssembly.Instance(module, {"mod": {the_name_of_my_import: f}});
var g = instance.exports.main;
assertEquals("function", typeof g);
for (var j = 0; j < 10; j++) {
« no previous file with comments | « test/mjsunit/wasm/ffi-error.js ('k') | test/mjsunit/wasm/gc-frame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698