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

Unified Diff: test/mjsunit/wasm/calls.js

Issue 1775353003: [wasm] Memory is exported on the module.exports object. (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 | « src/wasm/wasm-module.cc ('k') | test/mjsunit/wasm/instantiate-module-basic.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/calls.js
diff --git a/test/mjsunit/wasm/calls.js b/test/mjsunit/wasm/calls.js
index 0acf859eaa05e836906e2560d565738a8c479841..11cc92a8ec37befc0200edc63e38215736a87273 100644
--- a/test/mjsunit/wasm/calls.js
+++ b/test/mjsunit/wasm/calls.js
@@ -15,18 +15,18 @@ function assertModule(module, memsize) {
assertEquals("object", typeof module);
// Check the memory is an ArrayBuffer.
- var mem = module.memory;
+ var mem = module.exports.memory;
assertFalse(mem === undefined);
assertFalse(mem === null);
assertFalse(mem === 0);
assertEquals("object", typeof mem);
assertTrue(mem instanceof ArrayBuffer);
for (var i = 0; i < 4; i++) {
- module.memory = 0; // should be ignored
- assertEquals(mem, module.memory);
+ module.exports.memory = 0; // should be ignored
+ assertEquals(mem, module.exports.memory);
}
- assertEquals(memsize, module.memory.byteLength);
+ assertEquals(memsize, module.exports.memory.byteLength);
}
function assertFunction(module, func) {
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | test/mjsunit/wasm/instantiate-module-basic.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698