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
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
I have observed node locking up with full cpu utilization when using setTimeout with non-integer values
The follwing code snipit reliably reproduces the issue on my mac running node version v0.10.30
The t value was generated using Math.random() * 1000 and any such value has the same effect for me
vart=33.707402646541595functionnoop(){}setInterval(noop,t)// hangs after a few seconds
The following code however has no problems
vart=33functionnoop(){}setInterval(noop,t)// never hangs
I attached a debugger and the runtime appear to be stuck in a tight loop, here inside timers.js