summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-11-29 21:46:26 -0800
committerRich Trott <rtrott@gmail.com>2019-12-01 21:59:51 -0800
commitb419d2823037a6662d52b47a4b4fac1aa64e5548 (patch)
treeb2dc0d44632b8e6b202ed189d32a25181c1db84d
parentc5fc802abc54ca20e047c727868543c3d8cb4093 (diff)
downloadandroid-node-v8-b419d2823037a6662d52b47a4b4fac1aa64e5548.tar.gz
android-node-v8-b419d2823037a6662d52b47a4b4fac1aa64e5548.tar.bz2
android-node-v8-b419d2823037a6662d52b47a4b4fac1aa64e5548.zip
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>
-rw-r--r--doc/api/repl.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/api/repl.md b/doc/api/repl.md
index cd7edb59dd..967336710c 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.