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

Function wasOpenedHandler

test/sequential/test-inspector-open-dispose.mjs:24–32  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

22 }));
23
24 function wasOpenedHandler(msg) {
25 assert.strictEqual(msg.cmd, 'url');
26 const { port } = url.parse(msg.url);
27 ping(port, common.mustSucceed(() => {
28 child.send({ cmd: 'dispose' });
29 child.once('message', common.mustCall(wasDisposedWhenOpenHandler));
30 firstPort = port;
31 }));
32 }
33
34 function wasDisposedWhenOpenHandler(msg) {
35 assert.strictEqual(msg.cmd, 'url');

Callers

nothing calls this directly

Calls 4

pingFunction · 0.70
parseMethod · 0.65
sendMethod · 0.65
onceMethod · 0.45

Tested by

no test coverage detected