Please sign in to comment.
timers: fix handling of large timeouts
Don't use the double-negate trick to coalesce the timeout argument into a number, it produces the wrong result for very large timeouts. Example: setTimeout(cb, 1e10); // doesn't work, ~~1e10 == 1410065408
- Loading branch information...
Showing with 8 additions and 5 deletions.