Index: test/mjsunit/wasm/calls.js |
diff --git a/test/mjsunit/wasm/calls.js b/test/mjsunit/wasm/calls.js |
index b0feda8c80c865cd1cdfb56ee4bd0151a2a1be5a..4da0501cf2fdedd4af7d54348855aca50dd871a5 100644 |
--- a/test/mjsunit/wasm/calls.js |
+++ b/test/mjsunit/wasm/calls.js |
@@ -20,16 +20,13 @@ |
assertFalse(mem === null); |
assertFalse(mem === 0); |
assertEquals("object", typeof mem); |
- assertTrue(mem instanceof WebAssembly.Memory); |
- var buf = mem.buffer; |
- assertTrue(buf instanceof ArrayBuffer); |
- assertEquals(memsize, buf.byteLength); |
+ assertTrue(mem instanceof ArrayBuffer); |
for (var i = 0; i < 4; i++) { |
module.exports.memory = 0; // should be ignored |
- mem.buffer = 0; // should be ignored |
- assertSame(mem, module.exports.memory); |
- assertSame(buf, mem.buffer); |
+ assertEquals(mem, module.exports.memory); |
} |
+ |
+ assertEquals(memsize, module.exports.memory.byteLength); |
} |
function assertFunction(module, func) { |