Skip to content

Commit

Permalink
doc: deprecate NaN or negative number as delay
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecastelli committed May 15, 2024
1 parent 9807ede commit 7603d2e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/api/timers.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ This method has a custom variant for promises that is available using
<!-- YAML
added: v0.0.1
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/46678
description: Passing `NaN` or negative number as `delay` will result
the process to emit a warning, the warning will only be emitted once per process.
- version: v18.0.0
pr-url: https://github.com/nodejs/node/pull/41678
description: Passing an invalid callback to the `callback` argument
Expand Down Expand Up @@ -252,6 +256,10 @@ This method has a custom variant for promises that is available using
<!-- YAML
added: v0.0.1
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/46678
description: Passing `NaN` or negative number as `delay` will result
the process to emit a warning, the warning will only be emitted once per process.
- version: v18.0.0
pr-url: https://github.com/nodejs/node/pull/41678
description: Passing an invalid callback to the `callback` argument
Expand Down

0 comments on commit 7603d2e

Please sign in to comment.