[debugger] fix slow repl evals inside async callbacks
authorFedor Indutny <fedor.indutny@gmail.com>
Sat, 10 Sep 2011 11:19:47 +0000 (18:19 +0700)
committerFedor Indutny <fedor.indutny@gmail.com>
Sat, 10 Sep 2011 11:19:47 +0000 (18:19 +0700)
lib/_debugger.js

index 68fcde5..22a9909 100644 (file)
@@ -764,7 +764,7 @@ Interface.prototype.debugEval = function(code, context, filename, callback) {
   }
 
   self.pause();
-  client.reqEval(code, function(res) {
+  client.reqFrameEval(code, undefined, function(res) {
     if (!res.success) {
       if (res.message) {
         callback(res.message);