|
|
@ -747,15 +747,18 @@ function Interface(stdin, stdout, args) { |
|
|
|
|
|
|
|
// Two eval modes are available: controlEval and debugEval
|
|
|
|
// But controlEval is used by default
|
|
|
|
this.repl = repl.start({ |
|
|
|
var opts = { |
|
|
|
prompt: 'debug> ', |
|
|
|
input: this.stdin, |
|
|
|
output: this.stdout, |
|
|
|
terminal: !parseInt(process.env['NODE_NO_READLINE'], 10), |
|
|
|
eval: this.controlEval.bind(this), |
|
|
|
useGlobal: false, |
|
|
|
ignoreUndefined: true |
|
|
|
}); |
|
|
|
}; |
|
|
|
if (parseInt(process.env['NODE_NO_READLINE'], 10)) { |
|
|
|
opts.terminal = false; |
|
|
|
} |
|
|
|
this.repl = repl.start(opts); |
|
|
|
|
|
|
|
// Do not print useless warning
|
|
|
|
repl._builtinLibs.splice(repl._builtinLibs.indexOf('repl'), 1); |
|
|
|