You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug is easy to reproduce using the timeout function with a decimal.
AbortSignal.timeout(1.1)
How often does it reproduce? Is there a required condition?
It always produces the same error.
What is the expected behavior? Why is that the expected behavior?
I'd expect it to work with all numbers, including decimal numbers, within the range of 0 and Number.MAX_SAFE_INTEGER. Browsers and other JS runtimes all seem to allow decimals. There is no mention of this special behavior in the NodeJS docs.
What do you see instead?
Uncaught:
RangeError [ERR_OUT_OF_RANGE]: The value of "delay" is out of range. It must be an integer. Received 1.1
at AbortSignal.timeout (node:internal/abort_controller:239:5) {
code: 'ERR_OUT_OF_RANGE'
}
Additional information
No response
The text was updated successfully, but these errors were encountered:
Version
v24.1.0
Platform
Subsystem
No response
What steps will reproduce the bug?
The bug is easy to reproduce using the
timeout
function with a decimal.How often does it reproduce? Is there a required condition?
It always produces the same error.
What is the expected behavior? Why is that the expected behavior?
I'd expect it to work with all numbers, including decimal numbers, within the range of
0
andNumber.MAX_SAFE_INTEGER
. Browsers and other JS runtimes all seem to allow decimals. There is no mention of this special behavior in the NodeJS docs.What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: