Skip to content

Commit 1f6adff

Browse files
Joonas Rouhiainenvsemozhetbyt
authored andcommitted
doc: fix function name in process.md
setUncaughtExceptionCapture -> setUncaughtExceptionCaptureCallback process.setUncaughtExceptionCaptureCallback and its docs were originally added in #17159 PR-URL: #21523 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent 449f73b commit 1f6adff

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

doc/api/process.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,18 +1720,19 @@ added: v9.3.0
17201720

17211721
* `fn` {Function|null}
17221722

1723-
The `process.setUncaughtExceptionCapture` function sets a function that will
1724-
be invoked when an uncaught exception occurs, which will receive the exception
1725-
value itself as its first argument.
1723+
The `process.setUncaughtExceptionCaptureCallback()` function sets a function
1724+
that will be invoked when an uncaught exception occurs, which will receive the
1725+
exception value itself as its first argument.
17261726

17271727
If such a function is set, the [`'uncaughtException'`][] event will
17281728
not be emitted. If `--abort-on-uncaught-exception` was passed from the
17291729
command line or set through [`v8.setFlagsFromString()`][], the process will
17301730
not abort.
17311731

1732-
To unset the capture function, `process.setUncaughtExceptionCapture(null)`
1733-
may be used. Calling this method with a non-`null` argument while another
1734-
capture function is set will throw an error.
1732+
To unset the capture function,
1733+
`process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this
1734+
method with a non-`null` argument while another capture function is set will
1735+
throw an error.
17351736

17361737
Using this function is mutually exclusive with using the deprecated
17371738
[`domain`][] built-in module.

0 commit comments

Comments
 (0)