Index: test/mjsunit/wasm/data-segments.js |
diff --git a/test/mjsunit/wasm/data-segments.js b/test/mjsunit/wasm/data-segments.js |
index e73c96b7359ec48556b8752a4f78b91a4a0a0104..a0d2286ac7581940a2744b408c7242332783ff4e 100644 |
--- a/test/mjsunit/wasm/data-segments.js |
+++ b/test/mjsunit/wasm/data-segments.js |
@@ -19,7 +19,7 @@ function SimpleDataSegmentTest(offset) { |
builder.addDataSegment(offset, [9, 9, 9, 9]); |
var buffer = builder.toBuffer(debug); |
- var instance = Wasm.instantiateModule(buffer); |
+ var instance = new WebAssembly.Instance(new WebAssembly.Module(buffer)); |
for (var i = offset - 20; i < offset + 20; i += 4) { |
if (i < 0) continue; |
var expected = (i == offset) ? 151587081 : 0; |
@@ -44,7 +44,7 @@ function GlobalInitTest(offset) { |
builder.addDataSegment(g.index, [7, 7, 7, 7], true); |
var buffer = builder.toBuffer(debug); |
- var instance = Wasm.instantiateModule(buffer); |
+ var instance = new WebAssembly.Instance(new WebAssembly.Module(buffer)); |
for (var i = offset - 20; i < offset + 20; i += 4) { |
if (i < 0) continue; |
var expected = i == offset ? 117901063 : 0; |