[webkit-changes] [WebKit/WebKit] 8e35dc: [JSC] Add `"never"` and `"formalSymbol"` to `curre...
SUZUKI Sosuke
noreply at github.com
Sat Dec 14 22:00:10 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8e35dc0335a2dae0574990ba5469788ddbe86fd6
https://github.com/WebKit/WebKit/commit/8e35dc0335a2dae0574990ba5469788ddbe86fd6
Author: Sosuke Suzuki <aosukeke at gmail.com>
Date: 2024-12-14 (Sat, 14 Dec 2024)
Changed paths:
A JSTests/stress/intl-numberformat-currencyDisplay-formalSymbol.js
A JSTests/stress/intl-numberformat-currencyDisplay-never.js
M Source/JavaScriptCore/runtime/IntlNumberFormat.cpp
M Source/JavaScriptCore/runtime/IntlNumberFormat.h
M Source/JavaScriptCore/runtime/OptionsList.h
Log Message:
-----------
[JSC] Add `"never"` and `"formalSymbol"` to `currencyDisplay` option for `Intl.NumberFormat`
https://bugs.webkit.org/show_bug.cgi?id=284613
Reviewed by Yusuke Suzuki.
This patch adds support for More Currency Display Choices stage2
proposal[1]. This proposal adds `"formalSymbol"` and `"never"`
to `currencyDisplay` option for `Intl.NumberFormat`.
[1]: https://github.com/tc39/proposal-intl-currency-display-choices
* JSTests/stress/intl-numberformat-currencyDisplay-formalSymbol.js: Added.
(shouldBe):
(throw.new.Error):
* JSTests/stress/intl-numberformat-currencyDisplay-never.js: Added.
(shouldBe):
(throw.new.Error):
* Source/JavaScriptCore/runtime/IntlNumberFormat.cpp:
(JSC::IntlNumberFormat::initializeNumberFormat):
(JSC::IntlNumberFormat::currencyDisplayString):
* Source/JavaScriptCore/runtime/IntlNumberFormat.h:
* Source/JavaScriptCore/runtime/OptionsList.h:
Canonical link: https://commits.webkit.org/287849@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list