Changeset 267454 in webkit
- Timestamp:
- Sep 22, 2020, 6:57:35 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
JSTests/ChangeLog (modified) (1 diff)
-
JSTests/stress/intl-datetimeformat.js (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/runtime/OptionsList.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r267440 r267454 1 2020-09-22 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Enable Intl.DateTimeFormat dayPeriod 4 https://bugs.webkit.org/show_bug.cgi?id=216845 5 6 Reviewed by Mark Lam. 7 8 * stress/intl-datetimeformat.js: 9 1 10 2020-09-22 HyeockJin Kim <kherootz@gmail.com> 2 11 -
trunk/JSTests/stress/intl-datetimeformat.js
r266973 r267454 698 698 let dtf = new Intl.DateTimeFormat("en", {hour: "numeric", minute: "numeric", second: "numeric", fractionalSecondDigits: 1}); 699 699 shouldBe(dtf.format(t), `7:00:23.1 AM`); 700 shouldBe(JSON.stringify(dtf.resolvedOptions()), `{"locale":"en","calendar":"gregory","numberingSystem":"latn","timeZone":"America/Los_Angeles","hourCycle":"h12","hour12":true," hour":"numeric","minute":"2-digit","second":"2-digit","fractionalSecondDigits":1}`);700 shouldBe(JSON.stringify(dtf.resolvedOptions()), `{"locale":"en","calendar":"gregory","numberingSystem":"latn","timeZone":"America/Los_Angeles","hourCycle":"h12","hour12":true,"dayPeriod":"short","hour":"numeric","minute":"2-digit","second":"2-digit","fractionalSecondDigits":1}`); 701 701 } 702 702 shouldThrow(() => { -
trunk/Source/JavaScriptCore/ChangeLog
r267440 r267454 1 2020-09-22 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Enable Intl.DateTimeFormat dayPeriod 4 https://bugs.webkit.org/show_bug.cgi?id=216845 5 6 Reviewed by Mark Lam. 7 8 Since we already have consensus, let's enable it. 9 For now, we keep this flag since it is possible that something 10 happens before the change is integrated into the spec. 11 12 * runtime/OptionsList.h: 13 1 14 2020-09-22 HyeockJin Kim <kherootz@gmail.com> 2 15 -
trunk/Source/JavaScriptCore/runtime/OptionsList.h
r267330 r267454 490 490 /* FIXME: We should make sure finalizers don't run for detached windows before enabling WeakRefs by default. https://bugs.webkit.org/show_bug.cgi?id=214508 */ \ 491 491 v(Bool, useWeakRefs, false, Normal, "Expose the WeakRef constructor.") \ 492 v(Bool, useIntlDateTimeFormatDayPeriod, false, Normal, "Expose the Intl.DateTimeFormat dayPeriod feature.") \492 v(Bool, useIntlDateTimeFormatDayPeriod, true, Normal, "Expose the Intl.DateTimeFormat dayPeriod feature.") \ 493 493 v(Bool, useArrayAllocationProfiling, true, Normal, "If true, we will use our normal array allocation profiling. If false, the allocation profile will always claim to be undecided.") \ 494 494 v(Bool, forcePolyProto, false, Normal, "If true, create_this will always create an object with a poly proto structure.") \
Note:
See TracChangeset
for help on using the changeset viewer.