diff options
| author | isaacs <i@izs.me> | 2013-08-27 18:59:58 -0700 |
|---|---|---|
| committer | isaacs <i@izs.me> | 2013-09-04 11:17:28 -0700 |
| commit | 689e5c9d3db67ccfb81a1caefb04176c41a17744 (patch) | |
| tree | 7b26d46626187ccd29ea97df9fb5a71771809c9e /lib/_debugger.js | |
| parent | f91b047891c0deb402220b385f166c08edcb0591 (diff) | |
| download | node-689e5c9d3db67ccfb81a1caefb04176c41a17744.tar.gz | |
stream: return this from pause()/resume()
Diffstat (limited to 'lib/_debugger.js')
| -rw-r--r-- | lib/_debugger.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/_debugger.js b/lib/_debugger.js index aca52e5f3..e67d01026 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -855,13 +855,14 @@ function Interface(stdin, stdout, args) { Interface.prototype.pause = function() { - if (this.killed || this.paused++ > 0) return false; + if (this.killed || this.paused++ > 0) return this; this.repl.rli.pause(); this.stdin.pause(); + return this; }; Interface.prototype.resume = function(silent) { - if (this.killed || this.paused === 0 || --this.paused !== 0) return false; + if (this.killed || this.paused === 0 || --this.paused !== 0) return this; this.repl.rli.resume(); if (silent !== true) { this.repl.displayPrompt(); @@ -872,6 +873,7 @@ Interface.prototype.resume = function(silent) { this.waiting(); this.waiting = null; } + return this; }; |
