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 @@ -28,16 +28,7 @@ const { EventEmitter } = require('events');
28
28
const net = require ( 'net' ) ;
29
29
const util = require ( 'util' ) ;
30
30
31
- const runAsStandalone = typeof __dirname !== 'undefined' ;
32
-
33
31
const { 0 : InspectClient , 1 : createRepl } =
34
- runAsStandalone ?
35
- // This copy of node-inspect is on-disk, relative paths make sense.
36
- [
37
- require ( './inspect_client' ) ,
38
- require ( './inspect_repl' ) ,
39
- ] :
40
- // This copy of node-inspect is built into the node executable.
41
32
[
42
33
require ( 'internal/inspector/inspect_client' ) ,
43
34
require ( 'internal/inspector/inspect_repl' ) ,
@@ -335,9 +326,7 @@ function startInspect(argv = process.argv.slice(2),
335
326
stdin = process . stdin ,
336
327
stdout = process . stdout ) {
337
328
if ( argv . length < 1 ) {
338
- const invokedAs = runAsStandalone ?
339
- 'node-inspect' :
340
- `${ process . argv0 } ${ process . argv [ 1 ] } ` ;
329
+ const invokedAs = `${ process . argv0 } ${ process . argv [ 1 ] } ` ;
341
330
342
331
console . error ( `Usage: ${ invokedAs } script.js` ) ;
343
332
console . error ( ` ${ invokedAs } <host>:<port>` ) ;
You can’t perform that action at this time.
0 commit comments