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

Unified Diff: test/mjsunit/wasm/errors.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/data-segments.js ('k') | test/mjsunit/wasm/exceptions.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/errors.js
diff --git a/test/mjsunit/wasm/errors.js b/test/mjsunit/wasm/errors.js
index cf3377fbda396586b26b8bd06ebfdb799786e0eb..725abe28dfd74f09b72bdfbbc7be2ce60b8ece84 100644
--- a/test/mjsunit/wasm/errors.js
+++ b/test/mjsunit/wasm/errors.js
@@ -71,13 +71,13 @@ function assertConversionError(bytes, imports = {}) {
let b;
b = builder();
- b.addImportWithModule("foo", "bar", kSig_v_v);
+ b.addImport("foo", "bar", kSig_v_v);
assertTypeError(b.toBuffer(), {});
b = builder();
- b.addImportWithModule("foo", "bar", kSig_v_v);
+ b.addImport("foo", "bar", kSig_v_v);
assertLinkError(b.toBuffer(), {foo: {}});
b = builder();
- b.addImportWithModule("foo", "bar", kSig_v_v);
+ b.addImport("foo", "bar", kSig_v_v);
assertLinkError(b.toBuffer(), {foo: {bar: 9}});
b = builder();
@@ -132,7 +132,7 @@ function assertConversionError(bytes, imports = {}) {
(function TestConversionError() {
let b = builder();
- b.addImportWithModule("foo", "bar", kSig_v_l);
+ b.addImport("foo", "bar", kSig_v_l);
assertConversionError(b.addFunction("run", kSig_v_v).addBody([
kExprI64Const, 0, kExprCallFunction, 0
]).exportFunc().end().toBuffer());
« no previous file with comments | « test/mjsunit/wasm/data-segments.js ('k') | test/mjsunit/wasm/exceptions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698