-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editorial: Restrict IsValidTimeZoneName case folding to ASCII #1920
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1920 +/- ##
==========================================
+ Coverage 94.97% 95.00% +0.02%
==========================================
Files 19 19
Lines 10990 10990
Branches 1750 1600 -150
==========================================
+ Hits 10438 10441 +3
+ Misses 535 532 -3
Partials 17 17
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a good change. Although I'm not so confident about my mental model of how things should be divided between ECMA-262 and 402.
@ryzokuken @sffc It would be good to get your review on this as well, for that reason. @FrankYFTang also your perspective as implementor and ECMA-402 contributor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine. Procedurally, I think it would be slightly cleaner to make this a standalone normative PR against ECMA-402.
@sffc Done at tc39/ecma402#624, which ended up being editorial. This PR can be simplified after that lands, but will look different based on whether or not a non-ECMA-402 ECMA-262 Temporal implementation is allowed to support a built-in time zone that is absent from the IANA database (which is not allowed of an ECMA-402 implementation). |
tc39/ecma402#624 is merged now, so I think this can be edited somewhat. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
2129134
to
82f542b
Compare
Related to this PR- I have hard time w/ tc39/test262#3346 . I am not sure what is the right fix in the spec needed for those tests to pass but right now what I see is the name is not taking TimeZoneUTCOffsetName and the grammar could be changed by #1941 but that is not enough because step 7-a and 7-b of ParseTemporalTimeZoneString will throw. I have not carefully read all details of this PR and I am not sure this PR already has enough change to solve all the remaining issues for that but surely either the calling place in 7a or inside IsValidTimeZoneName need to be changed to solve that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it the case that anything needs to change in this PR according to the rough consensus we reached in yesterday's champions meeting? For example, do we now need to decouple IsValidTimeZoneName from 402's IsValidTimeZoneName?
Yes, I think so. |
On second thought, I think it's probably better to put that into its own issue (#1996) so that we don't keep this PR up in the air longer than necessary. I can rebase this today. |
I guess it would be best in that case to remove "Editorial: Add implementation-defined built-in time zone lookup steps" since that takes things more in the direction of unifying 402 and 262 IsValidTimeZone, rather than splitting them. It's a bit difficult to separate but I'll continue working on this tomorrow. |
82f542b
to
0fa7fc3
Compare
0fa7fc3
to
e3e13b1
Compare
@gibson042 I've kept the changes that I removed from this PR in a separate branch, https://github.com/tc39/proposal-temporal/tree/gibson042/implementation-defined in case you want to reuse some parts later. |
Fixes #1919