summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Kocharin <alex@kocharin.ru>2012-08-25 23:25:32 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2012-09-28 10:21:37 +0400
commit8ac1a73635316024f05375d021344ae2b45db831 (patch)
tree3b635678c8b08b0853bfd92c817baead78ac3ff3 /lib
parentb38277be266cfd6b6c3cc9e00730898f62a11f6e (diff)
downloadandroid-node-v8-8ac1a73635316024f05375d021344ae2b45db831.tar.gz
android-node-v8-8ac1a73635316024f05375d021344ae2b45db831.tar.bz2
android-node-v8-8ac1a73635316024f05375d021344ae2b45db831.zip
Fixed a bug with last command repeating in debugger
Diffstat (limited to 'lib')
-rw-r--r--lib/_debugger.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_debugger.js b/lib/_debugger.js
index c39a0ba58e..b221ce0bb9 100644
--- a/lib/_debugger.js
+++ b/lib/_debugger.js
@@ -952,7 +952,7 @@ Interface.prototype.controlEval = function(code, context, filename, callback) {
try {
// Repeat last command if empty line are going to be evaluated
if (this.repl.rli.history && this.repl.rli.history.length > 0) {
- if (code === '(undefined\n)') {
+ if (code === '(\n)') {
code = '(' + this.repl.rli.history[0] + '\n)';
}
}