-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, values would output negative numbers, as leastDelayedTimeToSend wasn't of type Timestamp; rather, it was a number. This caused the values to never subtract properly (as number - undefined will still equal that same number), which can cause stuff to wait for negative amounts of time, which turns into 0ms, instead of the 0ms and onward that's required to time everything correctly. JSON.parse and JSON.stringify has been refactored out, as cloning a number can simply be done by declaring a variable.
- Loading branch information
Showing
1 changed file
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters