Index: test/inspector/debugger/wasm-stack.js |
diff --git a/test/inspector/debugger/wasm-stack.js b/test/inspector/debugger/wasm-stack.js |
index a30d37f3204211b453e8afb6bdf85589b11c9d3e..56186c9568e15504924e2017a50d56b9ffae416c 100644 |
--- a/test/inspector/debugger/wasm-stack.js |
+++ b/test/inspector/debugger/wasm-stack.js |
@@ -11,13 +11,15 @@ var builder = new WasmModuleBuilder(); |
var imported_idx = builder.addImport("func", kSig_v_v); |
-var call_imported_idx = builder.addFunction("call_func", kSig_v_v) |
+var call_imported_idx = builder.addFunction('call_func', kSig_v_v) |
.addBody([kExprCallFunction, imported_idx]) |
.index; |
-builder.addFunction("main", kSig_v_v) |
- .addBody([kExprCallFunction, call_imported_idx]) |
- .exportAs("main"); |
+// Open a block in order to make the positions more interesting... |
+builder.addFunction('main', kSig_v_v) |
+ .addBody( |
+ [kExprBlock, kAstStmt, kExprCallFunction, call_imported_idx, kExprEnd]) |
+ .exportAs('main'); |
var module_bytes = builder.toArray(); |