| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 02e875c commit d65615e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,16 +29,7 @@ const { EventEmitter } = require('events'); | |||
| 29 | 29 | const net = require('net'); | |
| 30 | 30 | const util = require('util'); | |
| 31 | 31 | ||
| 32 | - const runAsStandalone = typeof __dirname !== 'undefined'; | ||
| 33 | - | ||
| 34 | 32 | const { 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. | ||
| 42 | 33 | [ | |
| 43 | 34 | require('internal/inspector/inspect_client'), | |
| 44 | 35 | require('internal/inspector/inspect_repl'), | |
@@ -336,9 +327,7 @@ function startInspect(argv = process.argv.slice(2), | |||
| 336 | 327 | stdin = process.stdin, | |
| 337 | 328 | stdout = process.stdout) { | |
| 338 | 329 | 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]}`; | ||
| 342 | 331 | ||
| 343 | 332 | console.error(`Usage: ${invokedAs} script.js`); | |
| 344 | 333 | console.error(` ${invokedAs} <host>:<port>`); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments