I'm guessing a web app won't need a 25-day timeout or interval.
I tried a very basic test on node and it seems to be waiting on it to execute... any idea why?
not sure... i just ran it in node and experienced the same issue as the browser. The following line should make node print without pausing:
setInterval(() => {console.log('log')}, 2**31)
or
setInterval(() => {console.log('log')}, -1)
where the following will take 596.5 hours (roughly):
setInterval(() => {console.log('log')}, 2**31-1)
I am currently on a Windows machine running v8.9.1, perhaps its solved in later versions?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm guessing a web app won't need a 25-day timeout or interval.
I tried a very basic test on node and it seems to be waiting on it to execute... any idea why?
not sure... i just ran it in node and experienced the same issue as the browser. The following line should make node print without pausing:
or
where the following will take 596.5 hours (roughly):
I am currently on a Windows machine running v8.9.1, perhaps its solved in later versions?