| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 34d9e48 commit 5990ba2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -61,13 +61,11 @@ | |||
| 61 | 61 | ||
| 62 | 62 | } else if (process.argv[1] == 'debug') { | |
| 63 | 63 | // Start the debugger agent | |
| 64 | - var d = NativeModule.require('_debugger'); | ||
| 65 | - d.start(); | ||
| 64 | + NativeModule.require('_debugger').start(); | ||
| 66 | 65 | ||
| 67 | 66 | } else if (process.argv[1] == '--debug-agent') { | |
| 68 | 67 | // Start the debugger agent | |
| 69 | - var d = NativeModule.require('_debug_agent'); | ||
| 70 | - d.start(); | ||
| 68 | + NativeModule.require('_debug_agent').start(); | ||
| 71 | 69 | ||
| 72 | 70 | } else { | |
| 73 | 71 | // There is user code to be run | |
@@ -137,8 +135,6 @@ | |||
| 137 | 135 | } | |
| 138 | 136 | ||
| 139 | 137 | } else { | |
| 140 | - var Module = NativeModule.require('module'); | ||
| 141 | - | ||
| 142 | 138 | // If -i or --interactive were passed, or stdin is a TTY. | |
| 143 | 139 | if (process._forceRepl || NativeModule.require('tty').isatty(0)) { | |
| 144 | 140 | // REPL | |
@@ -555,7 +551,7 @@ | |||
| 555 | 551 | // getcwd(3) can fail if the current working directory has been deleted. | |
| 556 | 552 | // Fall back to the directory name of the (absolute) executable path. | |
| 557 | 553 | // It's not really correct but what are the alternatives? | |
| 558 | - var cwd = path.dirname(process.execPath); | ||
| 554 | + cwd = path.dirname(process.execPath); | ||
| 559 | 555 | } | |
| 560 | 556 | ||
| 561 | 557 | var module = new Module(name); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments