Skip to content

Commit 0f1d737

Browse files
Joonas Rouhiainentargos
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 <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>
1 parent bc28398 commit 0f1d737

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
@@ -1690,18 +1690,19 @@ added: v9.3.0
16901690

16911691
* `fn` {Function|null}
16921692

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

16971697
If such a function is set, the [`'uncaughtException'`][] event will
16981698
not be emitted. If `--abort-on-uncaught-exception` was passed from the
16991699
command line or set through [`v8.setFlagsFromString()`][], the process will
17001700
not abort.
17011701

1702-
To unset the capture function, `process.setUncaughtExceptionCapture(null)`
1703-
may be used. Calling this method with a non-`null` argument while another
1704-
capture function is set will throw an error.
1702+
To unset the capture function,
1703+
`process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this
1704+
method with a non-`null` argument while another capture function is set will
1705+
throw an error.
17051706

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

0 commit comments

Comments
 (0)