mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test,doc: document crashOnUnhandledRejection()
Add documentation for `common.crashOnUnhandledRejection()`. Ref: https://github.com/nodejs/node/pull/12489/files/a9c2078a60bc3012dc6156df19772697a56a2517#r113737423 PR-URL: https://github.com/nodejs/node/pull/12699 Backport-PR-URL: https://github.com/nodejs/node/pull/13103 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This commit is contained in:
1 parent
4eb28c80e8
commit
4dff12849f
1 file changed
+7
@@ -174,6 +174,13 @@ A stream to push an array into a REPL
|
||||
|
||||
Blocks for `time` amount of time.
|
||||
|
||||
### crashOnUnhandledRejection()
|
||||
|
||||
Installs a `process.on('unhandledRejection')` handler that crashes the process
|
||||
after a tick. This is useful for tests that use Promises and need to make sure
|
||||
no unexpected rejections occur, because currently they result in silent
|
||||
failures.
|
||||
|
||||
### ddCommand(filename, kilobytes)
|
||||
* return [<Object>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
||||
|
||||
|
||||
Reference in new issue
Block a user