Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d7f1b0c

Browse files
Trotttargos
authored andcommittedDec 5, 2019
doc: revise REPL uncaught exception text
Simplify the text about uncaught exceptions in the REPL. PR-URL: #30729 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 8eecd8a commit d7f1b0c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎doc/api/repl.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,9 @@ REPL session.
151151

152152
This use of the [`domain`][] module in the REPL has these side effects:
153153

154-
* Uncaught exceptions only emit the [`'uncaughtException'`][] event if the
155-
`repl` is used as standalone program. If the `repl` is included anywhere in
156-
another application, adding a listener for this event will throw an
157-
[`ERR_INVALID_REPL_INPUT`][] exception.
154+
* Uncaught exceptions only emit the [`'uncaughtException'`][] event in the
155+
standalone REPL. Adding a listener for this event in a REPL within
156+
another Node.js program throws [`ERR_INVALID_REPL_INPUT`][].
158157
* Trying to use [`process.setUncaughtExceptionCaptureCallback()`][] throws
159158
an [`ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE`][] error.
160159

0 commit comments

Comments
 (0)
Please sign in to comment.