Skip to content

Commit

Permalink
remove the 32bit limit
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyEphraim committed Nov 28, 2023
1 parent 59094ce commit 1251c5b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1234,10 +1234,7 @@ later.setTimeout = function (fn, sched, timezone) {
diff = next[1] ? next[1].getTime() - now : 1e3;
}

t =
diff < 2147483647
? setTimeout(fn, diff)
: setTimeout(scheduleTimeout, 2147483647);
t = setTimeout(fn, diff);
} // scheduleTimeout()

return {
Expand Down

0 comments on commit 1251c5b

Please sign in to comment.