diff options
author | Joonas Rouhiainen <joonas.rouhiainen@reaktor.com> | 2018-06-25 16:57:31 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-06-27 20:49:45 +0300 |
commit | 1f6adff12cdf1d1ca6d8def2ef0b5abdff8c45b0 (patch) | |
tree | 53b7448ceabf42079c527ed5d1e2e16f4921a77b /doc/api/process.md | |
parent | 449f73b7ffd60e7dd140b360e4b53dc2428f4aef (diff) | |
download | android-node-v8-1f6adff12cdf1d1ca6d8def2ef0b5abdff8c45b0.tar.gz android-node-v8-1f6adff12cdf1d1ca6d8def2ef0b5abdff8c45b0.tar.bz2 android-node-v8-1f6adff12cdf1d1ca6d8def2ef0b5abdff8c45b0.zip |
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>
Diffstat (limited to 'doc/api/process.md')
-rw-r--r-- | doc/api/process.md | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/api/process.md b/doc/api/process.md index e6612278b6..edf01258c3 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1720,18 +1720,19 @@ added: v9.3.0 * `fn` {Function|null} -The `process.setUncaughtExceptionCapture` function sets a function that will -be invoked when an uncaught exception occurs, which will receive the exception -value itself as its first argument. +The `process.setUncaughtExceptionCaptureCallback()` function sets a function +that will be invoked when an uncaught exception occurs, which will receive the +exception value itself as its first argument. If such a function is set, the [`'uncaughtException'`][] event will not be emitted. If `--abort-on-uncaught-exception` was passed from the command line or set through [`v8.setFlagsFromString()`][], the process will not abort. -To unset the capture function, `process.setUncaughtExceptionCapture(null)` -may be used. Calling this method with a non-`null` argument while another -capture function is set will throw an error. +To unset the capture function, +`process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this +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 [`domain`][] built-in module. |