Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,11 @@

} else if (process.argv[1] == 'debug') {
// Start the debugger agent
var d = NativeModule.require('_debugger');
d.start();
NativeModule.require('_debugger').start();

} else if (process.argv[1] == '--debug-agent') {
// Start the debugger agent
var d = NativeModule.require('_debug_agent');
d.start();
NativeModule.require('_debug_agent').start();

} else if (process.profProcess) {
NativeModule.require('internal/v8_prof_processor');
Expand Down Expand Up @@ -142,8 +140,6 @@
}

} else {
var Module = NativeModule.require('module');

// If -i or --interactive were passed, or stdin is a TTY.
if (process._forceRepl || NativeModule.require('tty').isatty(0)) {
// REPL
Expand Down Expand Up @@ -594,7 +590,7 @@
// getcwd(3) can fail if the current working directory has been deleted.
// Fall back to the directory name of the (absolute) executable path.
// It's not really correct but what are the alternatives?
var cwd = path.dirname(process.execPath);
cwd = path.dirname(process.execPath);
}

var module = new Module(name);
Expand Down