Skip to content

Commit d7f1b0c

Browse files
Trotttargos
authored andcommitted
doc: revise REPL uncaught exception text
Simplify the text about uncaught exceptions in the REPL. PR-URL: #30729 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 8eecd8a commit d7f1b0c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: 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)