diff options
author | Blake Embrey <hello@blakeembrey.com> | 2015-10-22 09:38:40 -0700 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2016-05-12 10:03:06 -0400 |
commit | 9552e3b4af48d6864b4ba23939c22f836d933c24 (patch) | |
tree | e7d630190d094fdd60dfe705f70af42fe4ab861f /lib | |
parent | 25f8d04525c01d74afdc7356cad68e16fd4561e6 (diff) | |
download | android-node-v8-9552e3b4af48d6864b4ba23939c22f836d933c24.tar.gz android-node-v8-9552e3b4af48d6864b4ba23939c22f836d933c24.tar.bz2 android-node-v8-9552e3b4af48d6864b4ba23939c22f836d933c24.zip |
repl: exports `Recoverable`
Allow REPL consumers to callback with a `Recoverable` error instance
and trigger multi-line REPL prompts.
Fixes: https://github.com/nodejs/node/issues/2939
PR-URL: https://github.com/nodejs/node/pull/3488
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/repl.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/repl.js b/lib/repl.js index c7a0030244..b58cf499cd 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1177,3 +1177,4 @@ function Recoverable(err) { this.err = err; } inherits(Recoverable, SyntaxError); +exports.Recoverable = Recoverable; |