-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Description
Currently, the node repl module has the capability to do multiline input when the error is an instanceof Recoverable
. Unfortunately, the constructor is not exported from the repl
module which results in hacky ways to achieve a multi-line REPL experience like node. By exporting the error constructor, consumers could create their own recoverable instances to function identical to before and have multi-line input work naturally.
References:
Line 413 in a69ab27
if (e instanceof Recoverable) { |
Edit: Mostly a question, if it's reasonable to add I can issue a PR for a one-line export change.
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.