Index: test/inspector/debugger/wasm-stack.js |
diff --git a/test/inspector/debugger/wasm-stack.js b/test/inspector/debugger/wasm-stack.js |
index 56186c9568e15504924e2017a50d56b9ffae416c..7ac360935bc4ce7733fe372c84be411e73c90873 100644 |
--- a/test/inspector/debugger/wasm-stack.js |
+++ b/test/inspector/debugger/wasm-stack.js |
@@ -9,7 +9,7 @@ load('test/mjsunit/wasm/wasm-module-builder.js'); |
var builder = new WasmModuleBuilder(); |
-var imported_idx = builder.addImport("func", kSig_v_v); |
+var imported_idx = builder.addImport("mode", "func", kSig_v_v); |
var call_imported_idx = builder.addFunction('call_func', kSig_v_v) |
.addBody([kExprCallFunction, imported_idx]) |
@@ -35,7 +35,7 @@ function testFunction(bytes) { |
} |
var module = new WebAssembly.Module(buffer); |
- var instance = new WebAssembly.Instance(module, {func: call_debugger}); |
+ var instance = new WebAssembly.Instance(module, {mode: {func: call_debugger}}); |
instance.exports.main(); |
} |