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 89611653fbcdc33df20ea224795928fc8e2d18a7..e5cc4632cee282c70d890c9375fe66f3ded42dfb 100644 |
--- a/test/mjsunit/wasm/compiled-module-serialization.js |
+++ b/test/mjsunit/wasm/compiled-module-serialization.js |
@@ -9,7 +9,7 @@ load("test/mjsunit/wasm/wasm-module-builder.js"); |
(function SerializeAndDeserializeModule() { |
var builder = new WasmModuleBuilder(); |
- builder.addMemory(1,1, true); |
+ builder.addImportedMemory("", "memory", 1,1); |
var kSig_v_i = makeSig([kWasmI32], []); |
var signature = builder.addType(kSig_v_i); |
builder.addImport("", "some_value", kSig_i_v); |
@@ -48,8 +48,11 @@ load("test/mjsunit/wasm/wasm-module-builder.js"); |
view_1[0] = 42; |
var outval_1; |
- var i1 = new WebAssembly.Instance(module, {"": {some_value: () => 1, |
- writer: (x)=>outval_1 = x }}, mem_1); |
+ var i1 = new WebAssembly.Instance(module, {"": |
+ {some_value: () => 1, |
+ writer: (x) => outval_1 = x , |
+ memory: mem_1} |
+ }); |
assertEquals(43, i1.exports.main(0)); |