Skip to content

Commit 7603d2e

Browse files
committed
doc: deprecate NaN or negative number as delay
Refs: #46678
1 parent 9807ede commit 7603d2e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/timers.md

+8
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ This method has a custom variant for promises that is available using
224224
<!-- YAML
225225
added: v0.0.1
226226
changes:
227+
- version: REPLACEME
228+
pr-url: https://github.com/nodejs/node/pull/46678
229+
description: Passing `NaN` or negative number as `delay` will result
230+
the process to emit a warning, the warning will only be emitted once per process.
227231
- version: v18.0.0
228232
pr-url: https://github.com/nodejs/node/pull/41678
229233
description: Passing an invalid callback to the `callback` argument
@@ -252,6 +256,10 @@ This method has a custom variant for promises that is available using
252256
<!-- YAML
253257
added: v0.0.1
254258
changes:
259+
- version: REPLACEME
260+
pr-url: https://github.com/nodejs/node/pull/46678
261+
description: Passing `NaN` or negative number as `delay` will result
262+
the process to emit a warning, the warning will only be emitted once per process.
255263
- version: v18.0.0
256264
pr-url: https://github.com/nodejs/node/pull/41678
257265
description: Passing an invalid callback to the `callback` argument

0 commit comments

Comments
 (0)