[JSC] Fix Compatibility Issues with timezone in Intl.DateTimeFormat#47959
Conversation
|
EWS run on previous version of this PR (hash 6bc1eb3) Details |
6bc1eb3 to
ccb1d28
Compare
|
EWS run on previous version of this PR (hash ccb1d28) Details |
ccb1d28 to
79db17d
Compare
|
EWS run on previous version of this PR (hash 79db17d) Details |
79db17d to
a72496e
Compare
|
EWS run on previous version of this PR (hash a72496e) Details |
There was a problem hiding this comment.
WebKit coding style reserves “get” for only certain kinds of function names, so even though the standard calls this GetAvailableNamedTimeZoneIdentifier we should probably name this availableNamedTimeZoneIdentifier.
There was a problem hiding this comment.
This comment is no longer accurate. We should consider changing it. I’m also not sure we need all these tests if we’re just testing that the same string comes back to us. I wonder what this means about capitalization, like does “australia/darwin” work?
There was a problem hiding this comment.
Updated the comment.
I think these test cases are useful to make sure timezones are preserved and not canonicalized.
I wonder what this means about capitalization, like does “australia/darwin” work?
That's covered here
WebKit/JSTests/stress/intl-datetimeformat.js
Lines 249 to 251 in d9db853
a72496e to
6fd28e3
Compare
|
EWS run on current version of this PR (hash 6fd28e3) Details |
|
Would you mind adding the merge-queue label? I don't have the persimmon to do so. |
https://bugs.webkit.org/show_bug.cgi?id=295856 Reviewed by Darin Adler. The Intl.DateTimeFormat constructor [1] did not align with the current TC39 specification regarding the handling of the timeZone option. This patch implements GetAvailableNamedTimeZoneIdentifier [2] to bring the behavior in line with the latest TC39 spec. [1]: https://tc39.es/ecma402/#sec-createdatetimeformat [2]: https://tc39.es/ecma402/#sec-getavailablenamedtimezoneidentifier * JSTests/stress/intl-canonical-gmt.js: * JSTests/stress/intl-datetimeformat.js: * JSTests/test262/expectations.yaml: * Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp: (JSC::availableNamedTimeZoneIdentifier): (JSC::IntlDateTimeFormat::initializeDateTimeFormat): (JSC::canonicalizeTimeZoneName): Deleted. Canonical link: https://commits.webkit.org/297594@main
6fd28e3 to
1110ee1
Compare
|
Committed 297594@main (1110ee1): https://commits.webkit.org/297594@main Reviewed commits have been landed. Closing PR #47959 and removing active labels. |
1110ee1
6fd28e3
🧪 win-tests🛠 playstation