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

Function wasDisposedWhenOpenHandler

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

Source from the content-addressed store, hash-verified

32 }
33
34 function wasDisposedWhenOpenHandler(msg) {
35 assert.strictEqual(msg.cmd, 'url');
36 assert.strictEqual(msg.url, undefined);
37 ping(firstPort, common.mustCall((err) => {
38 assert(err, 'expected ping to inspector port to fail');
39 child.send({ cmd: 'dispose' });
40 child.once('message', common.mustCall(wasReDisposedHandler));
41 }));
42 }
43
44 function wasReDisposedHandler(msg) {
45 assert.strictEqual(msg.cmd, 'url');

Callers

nothing calls this directly

Calls 4

pingFunction · 0.70
sendMethod · 0.65
assertFunction · 0.50
onceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…