Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[JSC] Make Date.UTC simpler
https://bugs.webkit.org/show_bug.cgi?id=243446 Reviewed by Ross Kirsling. Avoid creating GregorianDateTime to generate ms from Date.UTC / Date constructor arguments and making computation simpler and aligned to the spec. * JSTests/test262/expectations.yaml: * Source/JavaScriptCore/runtime/DateConstructor.cpp: (JSC::millisecondsFromComponents): (JSC::constructDate): (JSC::JSC_DEFINE_HOST_FUNCTION): * Source/JavaScriptCore/runtime/JSDateMath.cpp: (JSC::DateCache::localTimeToMS): * Source/JavaScriptCore/runtime/JSDateMath.h: Canonical link: https://commits.webkit.org/253044@main
- Loading branch information
1 parent
285b652
commit 445da21
Showing
4 changed files
with
54 additions
and
18 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
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