summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/wasm/trap-location.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/trap-location.js')
-rw-r--r--deps/v8/test/mjsunit/wasm/trap-location.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/deps/v8/test/mjsunit/wasm/trap-location.js b/deps/v8/test/mjsunit/wasm/trap-location.js
index 5e14584224..890672357c 100644
--- a/deps/v8/test/mjsunit/wasm/trap-location.js
+++ b/deps/v8/test/mjsunit/wasm/trap-location.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:
@@ -30,11 +32,11 @@ var sig_index = builder.addType(kSig_i_v)
builder.addFunction("main", kSig_i_i)
.addBody([
// offset 1
- kExprBlock, kAstI32,
+ kExprBlock, kWasmI32,
kExprGetLocal, 0,
kExprI32Const, 2,
kExprI32LtU,
- kExprIf, kAstStmt,
+ kExprIf, kWasmStmt,
// offset 9
kExprI32Const, 0x7e /* -2 */,
kExprGetLocal, 0,
@@ -47,7 +49,7 @@ builder.addFunction("main", kSig_i_i)
kExprGetLocal, 0,
kExprI32Const, 2,
kExprI32Eq,
- kExprIf, kAstStmt,
+ kExprIf, kWasmStmt,
kExprUnreachable,
kExprEnd,
// offset 30