-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC]
Temporal.Instant.prototype.epochMilliseconds
should return fl…
…oored value https://bugs.webkit.org/show_bug.cgi?id=278300 Reviewed by Yusuke Suzuki. According to the latest Temporal spec [1], `Temporal.Instant.prototype.epochMilliseconds` should return a floored value. However, the current implementation in JSC returns a truncated value instead of a floored one. This patch changes `Temporal.Instant.prototype.epochMilliseconds` to return a floored value. [1]: https://tc39.es/proposal-temporal/#sec-get-temporal.instant.prototype.epochmilliseconds * JSTests/stress/temporal-instant.js: (instants.forEach): * JSTests/test262/expectations.yaml: * Source/JavaScriptCore/runtime/ISO8601.h: * Source/JavaScriptCore/runtime/TemporalInstantPrototype.cpp: (JSC::JSC_DEFINE_CUSTOM_GETTER): Canonical link: https://commits.webkit.org/282718@main
- Loading branch information
1 parent
08bd5d5
commit 845ee71
Showing
4 changed files
with
10 additions
and
5 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