diff options
author | Chris Dickinson <christopher.s.dickinson@gmail.com> | 2015-05-04 11:40:40 +0300 |
---|---|---|
committer | Chris Dickinson <christopher.s.dickinson@gmail.com> | 2015-05-04 20:42:42 +0300 |
commit | 051d482b151cc15b8273d705ec57209d0fa1db2a (patch) | |
tree | fff68d3218bf5c9e276cdf2f91b1d80f02d78b6a /src | |
parent | e67542ae17510e3657c2a946fde3dee4d775ac88 (diff) |
repl: fix _debugger by properly proxying repl
The _debugger module uses the internal REPL module, but expects
to receive the userland REPL module. This fixes the breakage that
occurs by proxying the userland REPL module through the internal
module.
It also fixes an unintended in-REPL bug, where require(node-module)
was not resolving correctly.
PR-URL: https://github.com/iojs/io.js/pull/1605
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/node.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.js b/src/node.js index 5cf56f62422..2d6ce45a928 100644 --- a/src/node.js +++ b/src/node.js @@ -130,7 +130,7 @@ // If -i or --interactive were passed, or stdin is a TTY. if (process._forceRepl || NativeModule.require('tty').isatty(0)) { // REPL - Module.requireRepl().createRepl(process.env, function(err, repl) { + Module.requireRepl().createInternalRepl(process.env, function(err, repl) { if (err) { throw err; } |