-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MERGE #4754 @jackhorton] OS#16115338 Update _.floor to normalize -0 …
…to 0 [OSS-Fuzz] Merge pull request #4754 from jackhorton:os16115338 The intl spec refers to the `floor` function in [DefaultNumberOption](https://tc39.github.io/ecma402/#sec-defaultnumberoption), which we had previously implemented as exactly Math.floor Math.floor is defined to return -0 when given -0 as input. However, DefaultNumberOption actually refers to [the floor mathematical operation](https://tc39.github.io/ecma262/#sec-mathematical-operations), which states that -0 should be normalized to 0, which is the more intuitive behavior. This fixes a FailFast that triggered when we couldn't retrieve the minimumFractionDigits as a TaggedInt.
- Loading branch information
Showing
6 changed files
with
27,437 additions
and
27,384 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
14,200 changes: 7,105 additions & 7,095 deletions
14,200
lib/Runtime/Library/InJavascript/Intl.js.bc.32b.h
Large diffs are not rendered by default.
Oops, something went wrong.
14,198 changes: 7,104 additions & 7,094 deletions
14,198
lib/Runtime/Library/InJavascript/Intl.js.bc.64b.h
Large diffs are not rendered by default.
Oops, something went wrong.
13,206 changes: 6,608 additions & 6,598 deletions
13,206
lib/Runtime/Library/InJavascript/Intl.js.nojit.bc.32b.h
Large diffs are not rendered by default.
Oops, something went wrong.
13,202 changes: 6,606 additions & 6,596 deletions
13,202
lib/Runtime/Library/InJavascript/Intl.js.nojit.bc.64b.h
Large diffs are not rendered by default.
Oops, something went wrong.
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