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

Unified Diff: test/mjsunit/wasm/trap-location-with-trap-if.js

Issue 2640453003: [wasm] Fix and tighten memory validation (Closed)
Patch Set: Comments Created 3 years, 11 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 | « test/mjsunit/wasm/trap-location.js ('k') | test/unittests/wasm/function-body-decoder-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/trap-location-with-trap-if.js
diff --git a/test/mjsunit/wasm/trap-location-with-trap-if.js b/test/mjsunit/wasm/trap-location-with-trap-if.js
index 752ec6c2df6f0b4c0300c2c735c703d98810c016..d0b65337bb6b52895de13f232645a5b802d5f0f8 100644
--- a/test/mjsunit/wasm/trap-location-with-trap-if.js
+++ b/test/mjsunit/wasm/trap-location-with-trap-if.js
@@ -14,6 +14,8 @@ Error.prepareStackTrace = function(error, frames) {
var builder = new WasmModuleBuilder();
+builder.addMemory(0, 1, false);
+
var sig_index = builder.addType(kSig_i_v)
// Build a function to resemble this code:
« no previous file with comments | « test/mjsunit/wasm/trap-location.js ('k') | test/unittests/wasm/function-body-decoder-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698