aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Dickinson <christopher.s.dickinson@gmail.com>2015-05-04 01:40:40 -0700
committerChris Dickinson <christopher.s.dickinson@gmail.com>2015-05-04 10:42:42 -0700
commit051d482b151cc15b8273d705ec57209d0fa1db2a (patch)
treefff68d3218bf5c9e276cdf2f91b1d80f02d78b6a /src
parente67542ae17510e3657c2a946fde3dee4d775ac88 (diff)
downloadandroid-node-v8-051d482b151cc15b8273d705ec57209d0fa1db2a.tar.gz
android-node-v8-051d482b151cc15b8273d705ec57209d0fa1db2a.tar.bz2
android-node-v8-051d482b151cc15b8273d705ec57209d0fa1db2a.zip
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.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.js b/src/node.js
index 5cf56f6242..2d6ce45a92 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;
}