Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f564835d48b7cdf0b4ddf8d25615000c5fa1a0fb
      
https://github.com/WebKit/WebKit/commit/f564835d48b7cdf0b4ddf8d25615000c5fa1a0fb
  Author: Sosuke Suzuki <[email protected]>
  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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to