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

Unified Diff: test/mjsunit/wasm/test-wasm-module-builder.js

Issue 1770383002: [wasm] Rename _WASMEXP_ object to Wasm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months 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/embenchen/zlib.js ('k') | test/mjsunit/wasm/verify-function-basic-errors.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/test-wasm-module-builder.js
diff --git a/test/mjsunit/wasm/test-wasm-module-builder.js b/test/mjsunit/wasm/test-wasm-module-builder.js
index cd879fd9d49c350585e4a7e38ee27c96c592db3e..e68e375f54fb66470122b6b56f61facf46779e4e 100644
--- a/test/mjsunit/wasm/test-wasm-module-builder.js
+++ b/test/mjsunit/wasm/test-wasm-module-builder.js
@@ -17,7 +17,7 @@ var debug = false;
.exportAs("blarg");
var buffer = module.toBuffer(debug);
- var instance = _WASMEXP_.instantiateModule(buffer);
+ var instance = Wasm.instantiateModule(buffer);
assertEquals(11, instance.exports.blarg());
})();
@@ -29,7 +29,7 @@ var debug = false;
.exportAs("main");
var buffer = module.toBuffer(debug);
- var instance = _WASMEXP_.instantiateModule(buffer, {print: print});
+ var instance = Wasm.instantiateModule(buffer, {print: print});
print("should print 13! ");
instance.exports.main();
})();
@@ -42,7 +42,7 @@ var debug = false;
.exportAs("main");
var buffer = module.toBuffer(debug);
- var instance = _WASMEXP_.instantiateModule(buffer);
+ var instance = Wasm.instantiateModule(buffer);
assertEquals(19, instance.exports.main(19));
assertEquals(27777, instance.exports.main(27777));
})();
@@ -64,7 +64,7 @@ var debug = false;
.exportAs("main");
var buffer = module.toBuffer(debug);
- var instance = _WASMEXP_.instantiateModule(buffer);
+ var instance = Wasm.instantiateModule(buffer);
assertEquals(19, instance.exports.main(19));
assertEquals(27777, instance.exports.main(27777));
}
@@ -108,7 +108,7 @@ var debug = false;
module.addDataSegment(0, [9, 9, 9, 9], true);
var buffer = module.toBuffer(debug);
- var instance = _WASMEXP_.instantiateModule(buffer);
+ var instance = Wasm.instantiateModule(buffer);
assertEquals(151587081, instance.exports.load(0));
})();
@@ -122,7 +122,7 @@ var debug = false;
var buffer = module.toBuffer(debug);
var array = new Uint8Array(buffer);
- var instance = _WASMEXP_.instantiateModule(array);
+ var instance = Wasm.instantiateModule(array);
assertEquals(17, instance.exports.blarg());
var kPad = 5;
@@ -135,6 +135,6 @@ var debug = false;
for (var i = 0; i < array2.byteLength; i++) {
array2[i] = array[i];
}
- var instance = _WASMEXP_.instantiateModule(array2);
+ var instance = Wasm.instantiateModule(array2);
assertEquals(17, instance.exports.blarg());
})();
« no previous file with comments | « test/mjsunit/wasm/embenchen/zlib.js ('k') | test/mjsunit/wasm/verify-function-basic-errors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698