Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9bcd2c5685fd27553b1edf35846aa523c42b204e
      
https://github.com/WebKit/WebKit/commit/9bcd2c5685fd27553b1edf35846aa523c42b204e
  Author: Yusuke Suzuki <[email protected]>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

  Changed paths:
    M JSTests/stress/intl-durationformat-digital.js
    M JSTests/stress/intl-durationformat-format-to-parts.js
    M Source/JavaScriptCore/runtime/IntlDurationFormat.cpp

  Log Message:
  -----------
  [JSC] Use "short" for "digital" style in Intl.DurationFormat
https://bugs.webkit.org/show_bug.cgi?id=246165
rdar://100860476

Reviewed by Mark Lam.

In the last ECMA 402 meeting, we agreed that default style of 
Intl.DurationFormat should be "short",
but the spec was not updated for "digital". It was a spec bug[1]. We should fix 
our implementation.

[1]: https://github.com/tc39/proposal-intl-duration-format/pull/127

* JSTests/stress/intl-durationformat-digital.js:
(Intl.DurationFormat.shouldBeOneOf.fmt.format):
(Intl.DurationFormat.shouldBeOneOf):
* JSTests/stress/intl-durationformat-format-to-parts.js:
(Intl.DurationFormat.shouldBe.JSON.stringify.fmt.formatToParts):
* Source/JavaScriptCore/runtime/IntlDurationFormat.cpp:
(JSC::IntlDurationFormat::initializeDurationFormat):

Canonical link: https://commits.webkit.org/255255@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to