diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 369587098b9478..f629e236c18c53 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3695,6 +3695,21 @@ For ciphers in GCM mode, the [`decipher.setAuthTag()`][] function accepts authentication tags of any valid length (see [DEP0090](#DEP0090)). This behavior is deprecated to better align with recommendations per [NIST SP 800-38D][]. +### DEP0183: Passing `NaN` or a negative number as `delay` in `node:timers` functions + + + +Type: Documentation-only + +Calling `setTimeout` or `setInterval` with `NaN` or a negative number will +result the process emitting a warning, the warning will only be emitted once per +process. + [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 diff --git a/doc/api/timers.md b/doc/api/timers.md index 3789e9efd00906..c8c724b71b567f 100644 --- a/doc/api/timers.md +++ b/doc/api/timers.md @@ -224,6 +224,9 @@ This method has a custom variant for promises that is available using