Index: test/mjsunit/wasm/compiled-module-serialization.js |
diff --git a/test/mjsunit/wasm/compiled-module-serialization.js b/test/mjsunit/wasm/compiled-module-serialization.js |
index 641bcf72b2722564459dcc354afba17df9cbd9c1..eb6534d0a8837bac0ab3cafd655b8823b314e6dc 100644 |
--- a/test/mjsunit/wasm/compiled-module-serialization.js |
+++ b/test/mjsunit/wasm/compiled-module-serialization.js |
@@ -42,8 +42,8 @@ load("test/mjsunit/wasm/wasm-module-builder.js"); |
gc(); |
module = %DeserializeWasmModule(buff, wire_bytes); |
- var mem_1 = new ArrayBuffer(4); |
- var view_1 = new Int32Array(mem_1); |
+ var mem_1 = new WebAssembly.Memory({initial: 1}); |
+ var view_1 = new Int32Array(mem_1.buffer); |
view_1[0] = 42; |