diff options
author | Gus Caplan <me@gus.host> | 2018-10-20 22:08:41 -0500 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2018-10-23 13:05:57 -0500 |
commit | 2caf0793c1e60b37851753d2eb219034be57da5f (patch) | |
tree | e66d306c504b0c36014ca7079ca9a2fa4930f4dd /doc/api/globals.md | |
parent | 3516052bee118dce767dd330fa857f6615c5b28a (diff) | |
download | android-node-v8-2caf0793c1e60b37851753d2eb219034be57da5f.tar.gz android-node-v8-2caf0793c1e60b37851753d2eb219034be57da5f.tar.bz2 android-node-v8-2caf0793c1e60b37851753d2eb219034be57da5f.zip |
lib: trigger uncaught exception handler for microtasks
PR-URL: https://github.com/nodejs/node/pull/23794
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Diffstat (limited to 'doc/api/globals.md')
-rw-r--r-- | doc/api/globals.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/globals.md b/doc/api/globals.md index 78087060a5..e41d621883 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -119,8 +119,8 @@ added: v11.0.0 * `callback` {Function} Function to be queued. The `queueMicrotask()` method queues a microtask to invoke `callback`. If -`callback` throws an exception, the [`process` object][] `'error'` event will -be emitted. +`callback` throws an exception, the [`process` object][] `'uncaughtException'` +event will be emitted. In general, `queueMicrotask` is the idiomatic choice over `process.nextTick()`. `process.nextTick()` will always run before the microtask queue, and so |