[webkit-changes] [WebKit/WebKit] f56483: [JSC] Fix error message for `Intl.NumberFormat`'s ...
SUZUKI Sosuke
noreply at github.com
Tue Dec 10 17:34:51 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f564835d48b7cdf0b4ddf8d25615000c5fa1a0fb
https://github.com/WebKit/WebKit/commit/f564835d48b7cdf0b4ddf8d25615000c5fa1a0fb
Author: Sosuke Suzuki <aosukeke at gmail.com>
Date: 2024-12-10 (Tue, 10 Dec 2024)
Changed paths:
M Source/JavaScriptCore/runtime/IntlNumberFormat.cpp
Log Message:
-----------
[JSC] Fix error message for `Intl.NumberFormat`'s `currencyDisplay` option
https://bugs.webkit.org/show_bug.cgi?id=284329
Reviewed by Yusuke Suzuki.
In the current JSC implementation, using an invalid
`currencyDisplay` option for `Intl.NumberFormat` throws
an error with the message: `currencyDisplay must be
either \"code\", \"symbol\", or \"name\"`.
However, `"narrowSymbol"` is also a valid option.
This patch updates the error message accordingly.
* Source/JavaScriptCore/runtime/IntlNumberFormat.cpp:
(JSC::IntlNumberFormat::initializeNumberFormat):
Canonical link: https://commits.webkit.org/287642@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