Index: test/mjsunit/wasm/parallel_compilation.js |
diff --git a/test/mjsunit/wasm/parallel_compilation.js b/test/mjsunit/wasm/parallel_compilation.js |
index 23c5658dcdcbee5ea66e57681cfcc91852dff826..208232cfd4f7a56a98cb420254496f5c01c28dde 100644 |
--- a/test/mjsunit/wasm/parallel_compilation.js |
+++ b/test/mjsunit/wasm/parallel_compilation.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) { |
@@ -84,7 +87,7 @@ function assertFunction(module, func) { |
.addBody([ // -- |
kExprGetLocal, 0, // -- |
kExprGetLocal, 1, // -- |
- kExprCallFunction, kArity2, f[i >>> 1].index]) // -- |
+ kExprCallFunction, f[i >>> 1].index]) // -- |
.exportFunc() |
} |
var module = builder.instantiate(); |