diff options
author | Rich Trott <rtrott@gmail.com> | 2019-11-30 08:46:26 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-12-02 08:59:51 +0300 |
commit | b419d2823037a6662d52b47a4b4fac1aa64e5548 (patch) | |
tree | b2dc0d44632b8e6b202ed189d32a25181c1db84d /doc/api/repl.md | |
parent | c5fc802abc54ca20e047c727868543c3d8cb4093 (diff) |
doc: revise REPL uncaught exception text
Simplify the text about uncaught exceptions in the REPL.
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/repl.md')
-rw-r--r-- | doc/api/repl.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/api/repl.md b/doc/api/repl.md index cd7edb59ddf..967336710ce 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -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 an [`ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE`][] error. |