diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 0fa1f8cfc29cc6..07ea8dc7a23d1c 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3378,6 +3378,20 @@ In a future version of Node.js, [`assert.CallTracker`][], will be removed. Consider using alternatives such as the [`mock`][] helper function. +### DEP0174: calling `promisify` on a function that returns a `Promise` + + + +Type: Documentation-only + +Calling [`util.promisify`][] on a function that returns a will ignore +the result of said promise, which can lead to unhandled promise rejections. + [NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf [RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3 [RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4 @@ -3518,6 +3532,7 @@ Consider using alternatives such as the [`mock`][] helper function. [`util.isSymbol()`]: util.md#utilissymbolobject [`util.isUndefined()`]: util.md#utilisundefinedobject [`util.log()`]: util.md#utillogstring +[`util.promisify`]: util.md#utilpromisifyoriginal [`util.types`]: util.md#utiltypes [`util`]: util.md [`worker.exitedAfterDisconnect`]: cluster.md#workerexitedafterdisconnect diff --git a/doc/api/util.md b/doc/api/util.md index 2b8f6c05d25899..3b3e12252d9e95 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1591,6 +1591,11 @@ $ node negate.js --no-logfile --logfile=test.log --color --no-color * `original` {Function}