Index: test/inspector/debugger/wasm-scripts.js |
diff --git a/test/inspector/debugger/wasm-scripts.js b/test/inspector/debugger/wasm-scripts.js |
index d3ab1325ce58ff7baa85331e9eb72f47dfc8dc6b..0993f11b5375d20f18811df8223286df2f93a88f 100644 |
--- a/test/inspector/debugger/wasm-scripts.js |
+++ b/test/inspector/debugger/wasm-scripts.js |
@@ -4,6 +4,8 @@ |
// Flags: --expose-wasm |
+let {session, contextGroup, Protocol} = InspectorTest.start('Tests how wasm scripts are reported'); |
+ |
utils.load('test/mjsunit/wasm/wasm-constants.js'); |
utils.load('test/mjsunit/wasm/wasm-module-builder.js'); |
@@ -27,8 +29,8 @@ function testFunction(bytes) { |
new WebAssembly.Module(buffer); |
} |
-InspectorTest.addScript(testFunction.toString(), 0, 0, 'v8://test/testFunction'); |
-InspectorTest.addScript('var module_bytes = ' + JSON.stringify(module_bytes)); |
+contextGroup.addScript(testFunction.toString(), 0, 0, 'v8://test/testFunction'); |
+contextGroup.addScript('var module_bytes = ' + JSON.stringify(module_bytes)); |
Protocol.Debugger.enable(); |
Protocol.Debugger.onScriptParsed(handleScriptParsed); |