Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
According to the spec, the addition in AddDuration must not be performed in the floating-point domain. Anba wrote some tests that verify this. For days, d1 + d2 practically speaking is still OK because the result is directly stuffed into a float64-representable integer anyway, so keep that the same for simplicity. Perform the other additions in the BigInt domain and pass BigInts to BalanceDuration. UPSTREAM_COMMIT=9a0565a8cba336a6dabbf10cc58ccbf665bfe023
- Loading branch information
Showing
2 changed files
with
45 additions
and
43 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
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