⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267454 in webkit


Ignore:
Timestamp:
Sep 22, 2020, 6:57:35 PM (6 years ago)
Author:
ysuzuki@apple.com
Message:

[JSC] Enable Intl.DateTimeFormat dayPeriod
https://bugs.webkit.org/show_bug.cgi?id=216845

Reviewed by Mark Lam.

JSTests:

  • stress/intl-datetimeformat.js:

Source/JavaScriptCore:

Since we already have consensus, let's enable it.
For now, we keep this flag since it is possible that something
happens before the change is integrated into the spec.

  • runtime/OptionsList.h:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r267440 r267454  
     12020-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
    1102020-09-22  HyeockJin Kim  <kherootz@gmail.com>
    211
  • trunk/JSTests/stress/intl-datetimeformat.js

    r266973 r267454  
    698698        let dtf = new Intl.DateTimeFormat("en", {hour: "numeric", minute: "numeric", second: "numeric", fractionalSecondDigits: 1});
    699699        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}`);
    701701    }
    702702    shouldThrow(() => {
  • trunk/Source/JavaScriptCore/ChangeLog

    r267440 r267454  
     12020-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
    1142020-09-22  HyeockJin Kim  <kherootz@gmail.com>
    215
  • trunk/Source/JavaScriptCore/runtime/OptionsList.h

    r267330 r267454  
    490490    /* 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 */ \
    491491    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.") \
    493493    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.") \
    494494    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.