Modified: trunk/JSTests/test262/expectations.yaml (251814 => 251815)
--- trunk/JSTests/test262/expectations.yaml 2019-10-30 22:39:31 UTC (rev 251814)
+++ trunk/JSTests/test262/expectations.yaml 2019-10-30 22:41:52 UTC (rev 251815)
@@ -1894,14 +1894,11 @@
default: 'Test262Error: Expected SameValue(«false», «true») to be true'
strict mode: 'Test262Error: Expected SameValue(«false», «true») to be true'
test/intl402/DateTimeFormat/prototype/resolvedOptions/order-dayPeriod.js:
- default: 'Test262Error: Expected [locale, calendar, numberingSystem, timeZone, hour, hourCycle, hour12, minute] and [locale, calendar, numberingSystem, timeZone, hourCycle, hour12, dayPeriod, hour, minute] to have the same contents. '
- strict mode: 'Test262Error: Expected [locale, calendar, numberingSystem, timeZone, hour, hourCycle, hour12, minute] and [locale, calendar, numberingSystem, timeZone, hourCycle, hour12, dayPeriod, hour, minute] to have the same contents. '
+ default: 'Test262Error: Expected [locale, calendar, numberingSystem, timeZone, hourCycle, hour12, hour, minute] and [locale, calendar, numberingSystem, timeZone, hourCycle, hour12, dayPeriod, hour, minute] to have the same contents. '
+ strict mode: 'Test262Error: Expected [locale, calendar, numberingSystem, timeZone, hourCycle, hour12, hour, minute] and [locale, calendar, numberingSystem, timeZone, hourCycle, hour12, dayPeriod, hour, minute] to have the same contents. '
test/intl402/DateTimeFormat/prototype/resolvedOptions/order-fractionalSecondDigits.js:
default: 'Test262Error: Expected [locale, calendar, numberingSystem, timeZone, minute, second] and [locale, calendar, numberingSystem, timeZone, minute, second, fractionalSecondDigits] to have the same contents. '
strict mode: 'Test262Error: Expected [locale, calendar, numberingSystem, timeZone, minute, second] and [locale, calendar, numberingSystem, timeZone, minute, second, fractionalSecondDigits] to have the same contents. '
-test/intl402/DateTimeFormat/prototype/resolvedOptions/order.js:
- default: 'Test262Error: Expected [locale, calendar, numberingSystem, timeZone, weekday, era, year, month, day, hour, hourCycle, hour12, minute, second, timeZoneName] and [locale, calendar, numberingSystem, timeZone, hourCycle, hour12, weekday, era, year, month, day, hour, minute, second, timeZoneName] to have the same contents. '
- strict mode: 'Test262Error: Expected [locale, calendar, numberingSystem, timeZone, weekday, era, year, month, day, hour, hourCycle, hour12, minute, second, timeZoneName] and [locale, calendar, numberingSystem, timeZone, hourCycle, hour12, weekday, era, year, month, day, hour, minute, second, timeZoneName] to have the same contents. '
test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js:
default: 'Test262Error: Expected SameValue(«cmn», «zh») to be true'
strict mode: 'Test262Error: Expected SameValue(«cmn», «zh») to be true'
Modified: trunk/Source/_javascript_Core/runtime/IntlDateTimeFormat.cpp (251814 => 251815)
--- trunk/Source/_javascript_Core/runtime/IntlDateTimeFormat.cpp 2019-10-30 22:39:31 UTC (rev 251814)
+++ trunk/Source/_javascript_Core/runtime/IntlDateTimeFormat.cpp 2019-10-30 22:41:52 UTC (rev 251815)
@@ -853,6 +853,11 @@
options->putDirect(vm, vm.propertyNames->numberingSystem, jsNontrivialString(vm, m_numberingSystem));
options->putDirect(vm, vm.propertyNames->timeZone, jsNontrivialString(vm, m_timeZone));
+ if (!m_hourCycle.isNull()) {
+ options->putDirect(vm, vm.propertyNames->hourCycle, jsNontrivialString(vm, m_hourCycle));
+ options->putDirect(vm, vm.propertyNames->hour12, jsBoolean(m_hourCycle == "h11" || m_hourCycle == "h12"));
+ }
+
if (m_weekday != Weekday::None)
options->putDirect(vm, vm.propertyNames->weekday, jsNontrivialString(vm, weekdayString(m_weekday)));
@@ -871,11 +876,6 @@
if (m_hour != Hour::None)
options->putDirect(vm, vm.propertyNames->hour, jsNontrivialString(vm, hourString(m_hour)));
- if (!m_hourCycle.isNull()) {
- options->putDirect(vm, vm.propertyNames->hourCycle, jsNontrivialString(vm, m_hourCycle));
- options->putDirect(vm, vm.propertyNames->hour12, jsBoolean(m_hourCycle == "h11" || m_hourCycle == "h12"));
- }
-
if (m_minute != Minute::None)
options->putDirect(vm, vm.propertyNames->minute, jsNontrivialString(vm, minuteString(m_minute)));