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

Function cleanup

test/parallel/test-debugger-address.mjs:43–53  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

41 let target = null;
42
43 function cleanup(error) {
44 if (cli) {
45 cli.quit();
46 cli = null;
47 }
48 if (target) {
49 target.kill();
50 target = null;
51 }
52 assert.ifError(error);
53 }
54
55 try {
56 const { childProc, host, port } = await launchTarget('--inspect=0', script);

Callers 1

Calls 1

killMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…