Chromium Code Reviews

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

Issue 2640453003: [wasm] Fix and tighten memory validation (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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:

Powered by Google App Engine