Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1153)

Unified Diff: test/mjsunit/wasm/data-segments.js

Issue 2417773004: [wasm] Reduce usage of old Wasm.* API in JS tests. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/wasm/exceptions.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | test/mjsunit/wasm/exceptions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698