updated Intl.DateTimeFormat.prototype.resolvedOptions() tests to reflect recent normative change#3885
Merged
updated Intl.DateTimeFormat.prototype.resolvedOptions() tests to reflect recent normative change#3885
Conversation
3f447aa to
15792da
Compare
Ms2ger
reviewed
Jul 27, 2023
test/intl402/DateTimeFormat/prototype/resolvedOptions/hourCycle-default.js
Outdated
Show resolved
Hide resolved
ff6b21a to
976299b
Compare
Ms2ger
requested changes
Aug 25, 2023
test/intl402/DateTimeFormat/prototype/resolvedOptions/hourCycle-dateStyle.js
Outdated
Show resolved
Hide resolved
test/intl402/DateTimeFormat/prototype/resolvedOptions/hourCycle-dateStyle.js
Outdated
Show resolved
Hide resolved
test/intl402/DateTimeFormat/prototype/resolvedOptions/hourCycle-default.js
Outdated
Show resolved
Hide resolved
test/intl402/DateTimeFormat/prototype/resolvedOptions/hourCycle-default.js
Outdated
Show resolved
Hide resolved
test/intl402/DateTimeFormat/prototype/resolvedOptions/hourCycle-default.js
Outdated
Show resolved
Hide resolved
test/intl402/DateTimeFormat/prototype/resolvedOptions/hourCycle-default.js
Outdated
Show resolved
Hide resolved
…hich now associates h12 with h23 rather than h24. see tc39/ecma402#758.
Contributor
|
The normative change reached consensus in the TC39 meeting of 2023-09. Given Ms2ger's approval I think we can merge this. I squashed the updates from addressing code review comments into the original topical commits. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Address #3812
Fix #3876
tc39/ecma402#758 changes the
hourCyclelogic in Intl.DateTimeFormat.InitializeDateAndTime() to no longer erroneously assume thath24is the 24 hour clock expected in locales usingh11orh12as defaults.7353744 and 15792da update hourCycle-default.js to reflect the new behaviour.
note: I don't believe any engine currently passes all of the tests in the new
hourCycle-default.js. v8 and node fail because they associateh12withh24, as was required by the old algorithm, while jsc and spidermonkey fail because they ignore the -u-hc-h24 extension whenhour12is set tofalse, as below:commit 2648144 updates hourCycle-dateStyle.js with explanatory comments. Essentially, all this test does is verify that
hour12andhourCycleare set toundefinedwhendateStylebut nottimeStyleis set, but the comments and metadata in the previous version appear to say something different.