test,doc: document crashOnUnhandledRejection()
Add documentation for `common.crashOnUnhandledRejection()`.
Ref: a9c2078a60 (r113737423)
PR-URL: https://github.com/nodejs/node/pull/12699
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:
parent
719247ff95
commit
3d87eca1e5
@ -186,6 +186,13 @@ doesn't have privileges to create symlinks (specifically
|
|||||||
[SeCreateSymbolicLinkPrivilege](https://msdn.microsoft.com/en-us/library/windows/desktop/bb530716(v=vs.85).aspx)).
|
[SeCreateSymbolicLinkPrivilege](https://msdn.microsoft.com/en-us/library/windows/desktop/bb530716(v=vs.85).aspx)).
|
||||||
On non-Windows platforms, this currently returns true.
|
On non-Windows platforms, this currently returns true.
|
||||||
|
|
||||||
|
### 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)
|
### ddCommand(filename, kilobytes)
|
||||||
* return [<Object>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
* return [<Object>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user