[webkit-changes] [WebKit/WebKit] 845ee7: [JSC] `Temporal.Instant.prototype.epochMillisecond...
SUZUKI Sosuke
noreply at github.com
Sun Aug 25 17:34:19 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 845ee710b8ee7b4623e523bdb63ae7fb8aceed93
https://github.com/WebKit/WebKit/commit/845ee710b8ee7b4623e523bdb63ae7fb8aceed93
Author: Sosuke Suzuki <aosukeke at gmail.com>
Date: 2024-08-25 (Sun, 25 Aug 2024)
Changed paths:
M JSTests/stress/temporal-instant.js
M JSTests/test262/expectations.yaml
M Source/JavaScriptCore/runtime/ISO8601.h
M Source/JavaScriptCore/runtime/TemporalInstantPrototype.cpp
Log Message:
-----------
[JSC] `Temporal.Instant.prototype.epochMilliseconds` should return floored 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
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list