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

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

Issue 2345593003: [wasm] Master CL for Binary 0xC changes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test failures and TSAN races. Created 4 years, 3 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/asm-wasm-expr.js ('k') | test/mjsunit/wasm/compiled-module-management.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 4da0501cf2fdedd4af7d54348855aca50dd871a5..b0feda8c80c865cd1cdfb56ee4bd0151a2a1be5a 100644
--- a/test/mjsunit/wasm/calls.js
+++ b/test/mjsunit/wasm/calls.js
@@ -20,13 +20,16 @@ function assertModule(module, memsize) {
assertFalse(mem === null);
assertFalse(mem === 0);
assertEquals("object", typeof mem);
- assertTrue(mem instanceof ArrayBuffer);
+ assertTrue(mem instanceof WebAssembly.Memory);
+ var buf = mem.buffer;
+ assertTrue(buf instanceof ArrayBuffer);
+ assertEquals(memsize, buf.byteLength);
for (var i = 0; i < 4; i++) {
module.exports.memory = 0; // should be ignored
- assertEquals(mem, module.exports.memory);
+ mem.buffer = 0; // should be ignored
+ assertSame(mem, module.exports.memory);
+ assertSame(buf, mem.buffer);
}
-
- assertEquals(memsize, module.exports.memory.byteLength);
}
function assertFunction(module, func) {
« no previous file with comments | « test/mjsunit/wasm/asm-wasm-expr.js ('k') | test/mjsunit/wasm/compiled-module-management.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698