-
Notifications
You must be signed in to change notification settings - Fork 28
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
Rebase upstream changes #274
Conversation
This should make things easier to follow when these quantities are replaced by the normalized form of time durations. UPSTREAM_COMMIT=5e7000f9def946d17f60cb6364c1409d81c44d85
We should be using RoundDuration on a duration. (Even though the outcome is exactly the same in this case and no observable operations are performed.) UPSTREAM_COMMIT=a2971b0b98e065c5d54c66cfa01d17b4e846aa88
This is to match the spec and also match what we do in #2519. UPSTREAM_COMMIT=f8fe68b4efa2b8ddde3135fce802f20497c3bbc8
I've seen occasional Test262 failures at 30 seconds (perhaps related to GitHub capacity limitations?) so let's bump to 60s. UPSTREAM_COMMIT=d2b6d5074b305f7561e62fa9c20cb60e9ce87b2c
91a8afc
to
fde949d
Compare
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.
Looks great! So happy that you're cranking through these commits. Soon we'll be all caught up! Thanks again, James!
UPSTREAM_COMMIT=076f2871a8b91d78cb90aa0012ea55fdb4d94580
Node 20 (ICU 73.1, actually) introduced a bug that broke some tests. This PR ensures that our tests will continue to run after other users update their CI to Node 20. See https://bugs.chromium.org/p/chromium/issues/detail?id=1451943 for the bug. https://bugs.chromium.org/p/chromium/issues/detail?id=1173158 is the root cause issue that was made worse in ICU 73.1. The fix was to avoid using Intl.DateTimeFormat in the polyfill for Gregorian-based calendars. A nice side effect of this is that these calendars now run tests faster and no longer fail for dates before 1582-10-15. UPSTREAM_COMMIT=08d214e7d60feaecc7c9b94f992777c97c46f5ea
* spelling: nonexistent * spelling: then Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> UPSTREAM_COMMIT=bea08cd3b755d9c4f8df3394b2c47292047ab1cd
toString() can only round the seconds and lower units, so we do not need to pass all the units in to RoundDuration - we can only round to seconds increments and smaller anyway. This makes it clearer that implementations can treat seconds as a single number if they wish. UPSTREAM_COMMIT=4c2fcafd25e06ba82bf50e270a0f9ef252f1da55
fde949d
to
8a7cbb8
Compare
This commit refactors spec text and polyfill code for time zone offsets, especially to split the handling of offsets in ISO strings from offsets used as time zone identifiers. This will help prepare for a later normative commit where time zone identifiers are limited to minutes precision while ISO string offset inputs and ZonedDateTime's `offset` property still support nanosecond precision. UPSTREAM_COMMIT=fd7583b00447d47d602de2341926e09f26dd450f
1d79600
to
cca880f
Compare
@justingrant I've noticed a couple backwards-compat issues with some of our tests:
|
@12wrigja I'll take a look later this week. Thanks! |
IMO these tests should be skipped instead of just returning success. For example, we can use something like const itOrSkip = (id) => ((id === 'chinese' || id === 'dangi') && hasOutdatedChineseIcuData ? it.skip : it);
I think the fix would be to add this time zone as a special case in Dar_Es_Salaam: 'Dar_es_Salaam',
Port_Of_Spain: 'Port_of_Spain',
'Port-Au-Prince': 'Port-au-Prince', // add this line
Isle_Of_Man: 'Isle_of_Man',
Comodrivadavia: 'ComodRivadavia', This is not Node-version-dependent... it should work in all Node versions. If not, let me know! |
eb856b5
to
46025c2
Compare
46025c2
to
4e826d5
Compare
Thanks Justin. The addition to GetAvailableNamedTimeZoneIdentifier worked perfectly - thanks. I also added the itOrSkip-like function to disable the two new test-cases for older Node runtimes. |
No description provided.