File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,7 @@ const { EventEmitter } = require('events');
2929const net = require ( 'net' ) ;
3030const util = require ( 'util' ) ;
3131
32- const runAsStandalone = typeof __dirname !== 'undefined' ;
33-
3432const { 0 : InspectClient , 1 : createRepl } =
35- runAsStandalone ?
36- // This copy of node-inspect is on-disk, relative paths make sense.
37- [
38- require ( './inspect_client' ) ,
39- require ( './inspect_repl' ) ,
40- ] :
41- // This copy of node-inspect is built into the node executable.
4233 [
4334 require ( 'internal/inspector/inspect_client' ) ,
4435 require ( 'internal/inspector/inspect_repl' ) ,
@@ -336,9 +327,7 @@ function startInspect(argv = process.argv.slice(2),
336327 stdin = process . stdin ,
337328 stdout = process . stdout ) {
338329 if ( argv . length < 1 ) {
339- const invokedAs = runAsStandalone ?
340- 'node-inspect' :
341- `${ process . argv0 } ${ process . argv [ 1 ] } ` ;
330+ const invokedAs = `${ process . argv0 } ${ process . argv [ 1 ] } ` ;
342331
343332 console . error ( `Usage: ${ invokedAs } script.js` ) ;
344333 console . error ( ` ${ invokedAs } <host>:<port>` ) ;
You can’t perform that action at this time.
0 commit comments