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

Unified Diff: test/mjsunit/wasm/compiled-module-serialization.js

Issue 2396433008: [wasm] Add guard regions to end of WebAssembly.Memory buffers (Closed)
Patch Set: Cleanup 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
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 b5c25e0a0186b1014b710f9e7a16553dceb4cd60..d35a19ddea79e5b03430bee2d646fc3955943cd1 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;

Powered by Google App Engine
This is Rietveld 408576698