doc: fix function name in process.md
setUncaughtExceptionCapture -> setUncaughtExceptionCaptureCallback process.setUncaughtExceptionCaptureCallback and its docs were originally added in https://github.com/nodejs/node/pull/17159 PR-URL: https://github.com/nodejs/node/pull/21523 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
parent
449f73b7ff
commit
1f6adff12c
@ -1720,18 +1720,19 @@ added: v9.3.0
|
|||||||
|
|
||||||
* `fn` {Function|null}
|
* `fn` {Function|null}
|
||||||
|
|
||||||
The `process.setUncaughtExceptionCapture` function sets a function that will
|
The `process.setUncaughtExceptionCaptureCallback()` function sets a function
|
||||||
be invoked when an uncaught exception occurs, which will receive the exception
|
that will be invoked when an uncaught exception occurs, which will receive the
|
||||||
value itself as its first argument.
|
exception value itself as its first argument.
|
||||||
|
|
||||||
If such a function is set, the [`'uncaughtException'`][] event will
|
If such a function is set, the [`'uncaughtException'`][] event will
|
||||||
not be emitted. If `--abort-on-uncaught-exception` was passed from the
|
not be emitted. If `--abort-on-uncaught-exception` was passed from the
|
||||||
command line or set through [`v8.setFlagsFromString()`][], the process will
|
command line or set through [`v8.setFlagsFromString()`][], the process will
|
||||||
not abort.
|
not abort.
|
||||||
|
|
||||||
To unset the capture function, `process.setUncaughtExceptionCapture(null)`
|
To unset the capture function,
|
||||||
may be used. Calling this method with a non-`null` argument while another
|
`process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this
|
||||||
capture function is set will throw an error.
|
method with a non-`null` argument while another capture function is set will
|
||||||
|
throw an error.
|
||||||
|
|
||||||
Using this function is mutually exclusive with using the deprecated
|
Using this function is mutually exclusive with using the deprecated
|
||||||
[`domain`][] built-in module.
|
[`domain`][] built-in module.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user