-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
Change in return value of setTimeoutΒ #35770
Copy link
Copy link
Closed
Labels
timersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.
Metadata
Metadata
Assignees
Labels
timersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.
Type
Fields
Give feedbackNo fields configured for issues without a type.
What steps will reproduce the bug?
In node:12.19.0-slim docker image
setTimeoutfunction returns a value for whichisNaN=falseIn node:12.18.4-slim docker image
setTimeoutfunction returns a value for whichisNaN=truetimeoutId = setTimeout(function() {alert("Timeout")}, 1000);
console.log(isNaN(timeoutId))
Is this an intentional behaviour?