| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b14b2ae commit 37a546b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,13 +63,11 @@ | |||
| 63 | 63 | ||
| 64 | 64 | } else if (process.argv[1] == 'debug') { | |
| 65 | 65 | // Start the debugger agent | |
| 66 | - var d = NativeModule.require('_debugger'); | ||
| 67 | - d.start(); | ||
| 66 | + NativeModule.require('_debugger').start(); | ||
| 68 | 67 | ||
| 69 | 68 | } else if (process.argv[1] == '--debug-agent') { | |
| 70 | 69 | // Start the debugger agent | |
| 71 | - var d = NativeModule.require('_debug_agent'); | ||
| 72 | - d.start(); | ||
| 70 | + NativeModule.require('_debug_agent').start(); | ||
| 73 | 71 | ||
| 74 | 72 | } else if (process.profProcess) { | |
| 75 | 73 | NativeModule.require('internal/v8_prof_processor'); | |
@@ -142,8 +140,6 @@ | |||
| 142 | 140 | } | |
| 143 | 141 | ||
| 144 | 142 | } else { | |
| 145 | - var Module = NativeModule.require('module'); | ||
| 146 | - | ||
| 147 | 143 | // If -i or --interactive were passed, or stdin is a TTY. | |
| 148 | 144 | if (process._forceRepl || NativeModule.require('tty').isatty(0)) { | |
| 149 | 145 | // REPL | |
@@ -592,7 +588,7 @@ | |||
| 592 | 588 | // getcwd(3) can fail if the current working directory has been deleted. | |
| 593 | 589 | // Fall back to the directory name of the (absolute) executable path. | |
| 594 | 590 | // It's not really correct but what are the alternatives? | |
| 595 | - var cwd = path.dirname(process.execPath); | ||
| 591 | + cwd = path.dirname(process.execPath); | ||
| 596 | 592 | } | |
| 597 | 593 | ||
| 598 | 594 | var module = new Module(name); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments