GeezerVison is showing github.com — doc: fix function name in process.md · nodejs/node@0f1d737
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/process.md +7-6Lines changed: 7 additions & 6 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1690,18 +1690,19 @@ added: v9.3.0 |
1690 | 1690 |
|
1691 | 1691 | * `fn` {Function|null} |
1692 | 1692 |
|
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. |
1696 | 1696 |
|
1697 | 1697 | If such a function is set, the [`'uncaughtException'`][] event will |
1698 | 1698 | not be emitted. If `--abort-on-uncaught-exception` was passed from the |
1699 | 1699 | command line or set through [`v8.setFlagsFromString()`][], the process will |
1700 | 1700 | not abort. |
1701 | 1701 |
|
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. |
1705 | 1706 |
|
1706 | 1707 | Using this function is mutually exclusive with using the deprecated |
1707 | 1708 | [`domain`][] built-in module. |
|