File tree 1 file changed +15
-0
lines changed
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
141
141
> fs .createReadStream (' ./some/file' );
142
142
```
143
143
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
+
144
155
#### Assignment of the ` _ ` (underscore) variable
145
156
<!-- YAML
146
157
changes:
@@ -613,7 +624,11 @@ a `net.Server` and `net.Socket` instance, see:
613
624
For an example of running a REPL instance over [ curl(1)] [ ] , see:
614
625
[ https://gist.github.com/2053342 ] ( https://gist.github.com/2053342 ) .
615
626
627
+ [ `'uncaughtException'` ] : process.html#process_event_uncaughtexception
616
628
[ `--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
617
632
[ `readline.InterfaceCompleter` ] : readline.html#readline_use_of_the_completer_function
618
633
[ `readline.Interface` ] : readline.html#readline_class_interface
619
634
[ `util.inspect()` ] : util.html#util_util_inspect_object_options
You can’t perform that action at this time.
0 commit comments