File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,17 @@ global or scoped variable, the input `fs` will be evaluated on-demand as
141141> fs .createReadStream (' ./some/file' );
142142```
143143
144+ #### Global Uncaught Exceptions
145+
146+ The REPL uses the [ ` domain ` ] [ ] module to catch all uncaught exceptions for that
147+ REPL session.
148+
149+ This use of the [ ` domain ` ] [ ] module in the REPL has these side effects:
150+
151+ * Uncaught exceptions do not emit the [ ` 'uncaughtException' ` ] [ ] event.
152+ * Trying to use [ ` process.setUncaughtExceptionCaptureCallback() ` ] [ ] throws
153+ an [ ` ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE ` ] [ ] error.
154+
144155#### Assignment of the ` _ ` (underscore) variable
145156<!-- YAML
146157changes:
@@ -613,7 +624,11 @@ a `net.Server` and `net.Socket` instance, see:
613624For an example of running a REPL instance over [ curl(1)] [ ] , see:
614625[ https://gist.github.com/2053342 ] ( https://gist.github.com/2053342 ) .
615626
627+ [ `'uncaughtException'` ] : process.html#process_event_uncaughtexception
616628[ `--experimental-repl-await` ] : cli.html#cli_experimental_repl_await
629+ [ `ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE` ] : errors.html#errors_err_domain_cannot_set_uncaught_exception_capture
630+ [ `domain` ] : domain.html
631+ [ `process.setUncaughtExceptionCaptureCallback()` ] : process.html#process_process_setuncaughtexceptioncapturecallback_fn
617632[ `readline.InterfaceCompleter` ] : readline.html#readline_use_of_the_completer_function
618633[ `readline.Interface` ] : readline.html#readline_class_interface
619634[ `util.inspect()` ] : util.html#util_util_inspect_object_options
You can’t perform that action at this time.
0 commit comments