83
rated 0 times
[
88]
[
5]
/ answers: 1 / hits: 16918
/ 12 Years ago, fri, september 28, 2012, 12:00:00
I'm having problems on Firefox 15 and Chrome 21 with the following code:
setInterval(function () { console.log('test') }, 300000000000)
On both browsers, the function is run right away repeats very quickly. Sure, that's a big number (representing about 10 years from now), but I wouldn't expect it to be treated as a tiny or negative number. I haven't seen a maximum allowed delay in any documentation. Does anyone know if there's a standard max, or if this is just the browsers being funny?
More From » setinterval