2 ms·
The bug happened for setInterval() with any timeout (the bug report is for one with 500 milliseconds). The problem is that the function that returned the curre
by moefh 8y ago
The bug happened for setInterval() with any timeout (the bug report is for one with 500 milliseconds).
The problem is that the function that returned the current time was overflowing a 32-bit integer, so interval calculations were messed up and setInteval() wouldn't fire.
The fix[1] was simply to change an int to an unsigned int.
[1] https://github.com/nodejs/node/pull/22214/commits/3bb7fdfbbeb7e9f727314608f393858661b94346#diff-740094b363a8e0203beab60946cc3adeL620 https://github.com/nodejs/node/pull/22214/commits/3bb7fdfbbe...