MCPcopy Index your code
hub / github.com/nodejs/node / runToCompletion

Method runToCompletion

test/common/inspector-helper.js:310–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

308 }
309
310 async runToCompletion() {
311 console.log('[test]', 'Verify node waits for the frontend to disconnect');
312 await this.send({ 'method': 'Debugger.resume' });
313 await this.waitForNotification((notification) => {
314 if (notification.method === 'Debugger.paused') {
315 this.send({ 'method': 'Debugger.resume' });
316 }
317 return notification.method === 'Runtime.executionContextDestroyed' &&
318 notification.params.executionContextId === 1;
319 });
320 await this.waitForDisconnect();
321 }
322
323 async waitForDisconnect() {
324 while ((await this._instance.nextStderrString()) !==

Callers 13

runTestFunction · 0.80
runTestFunction · 0.80
runTestsFunction · 0.80
runTestFunction · 0.80
runTestsFunction · 0.80
runTestsFunction · 0.80
runTestFunction · 0.80
runTestsFunction · 0.80
runTestFunction · 0.80
runTestsFunction · 0.80
runTestFunction · 0.80
runTestsFunction · 0.80

Calls 4

sendMethod · 0.95
waitForNotificationMethod · 0.95
waitForDisconnectMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected