Skip to content
Browse files

doc: revise REPL uncaught exception text

Simplify the text about uncaught exceptions in the REPL.

PR-URL: #30729
Reviewed-By: Gireesh Punathil <>
Reviewed-By: Anto Aravinth <>
Reviewed-By: Michaël Zasso <>
Reviewed-By: Beth Griggs <>
Reviewed-By: Trivikram Kamat <>
  • Loading branch information
Trott authored and MylesBorins committed Nov 30, 2019
1 parent 50a54ce commit 043163a6020f39d2ddf444aaca1ba3fcee80a9ce
Showing with 3 additions and 4 deletions.
  1. +3 −4 doc/api/
@@ -151,10 +151,9 @@ REPL session.

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

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

0 comments on commit 043163a

Please sign in to comment.
You can’t perform that action at this time.