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

Function scriptMain

test/parallel/test-inspect-publish-uid.js:34–41  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

32 }
33
34 function scriptMain(code) {
35 const url = require('inspector').url();
36 const { host } = require('url').parse(url);
37 require('http').get('http://' + host + '/json/list', common.mustCall((response) => {
38 assert.strictEqual(response.statusCode, code);
39 response.destroy();
40 }));
41 }
42}

Callers

nothing calls this directly

Calls 5

urlMethod · 0.65
parseMethod · 0.65
getMethod · 0.65
requireFunction · 0.50
destroyMethod · 0.45

Tested by

no test coverage detected