Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: deprecate NaN or negative number as delay to setTimeout and setInterval #53005

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3687,6 +3687,21 @@ changes:

Type: Runtime

### DEP0183: Passing `NaN` or a negative number as `delay`
jakecastelli marked this conversation as resolved.
Show resolved Hide resolved

<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/53005
description: Passing `NaN` or a negative number as `delay` is deprecated.
jakecastelli marked this conversation as resolved.
Show resolved Hide resolved
-->

Type: Runtime
jakecastelli marked this conversation as resolved.
Show resolved Hide resolved

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.

Applications that intend to use authentication tags that are shorter than the
default authentication tag length must set the `authTagLength` option of the
[`crypto.createDecipheriv()`][] function to the appropriate length.
jakecastelli marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Loading