MCPcopy Create free account
hub / github.com/nodejs/node / waitForWasmScript

Function waitForWasmScript

deps/v8/test/inspector/debugger/wasm-remove-breakpoint.js:75–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75async function waitForWasmScript() {
76 InspectorTest.log('Waiting for wasm scripts to be parsed.');
77 while (true) {
78 let msg = await Protocol.Debugger.onceScriptParsed();
79 let url = msg.params.url;
80 if (!url.startsWith('wasm://')) {
81 InspectorTest.log('Ignoring script with url ' + url);
82 continue;
83 }
84 let scriptId = msg.params.scriptId;
85 InspectorTest.log('Got wasm script: ' + url);
86 return scriptId;
87 }
88}

Callers 1

Calls 1

logMethod · 0.45

Tested by

no test coverage detected