Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b8b32fe6a3c5cdaf94eab51e0dfef07620ac170e
      
https://github.com/WebKit/WebKit/commit/b8b32fe6a3c5cdaf94eab51e0dfef07620ac170e
  Author: Sosuke Suzuki <aosuk...@gmail.com>
  Date:   2025-06-20 (Fri, 20 Jun 2025)

  Changed paths:
    A JSTests/stress/intl-locale-prototype-variants.js
    M JSTests/test262/expectations.yaml
    M Source/JavaScriptCore/runtime/CommonIdentifiers.h
    M Source/JavaScriptCore/runtime/IntlLocale.cpp
    M Source/JavaScriptCore/runtime/IntlLocale.h
    M Source/JavaScriptCore/runtime/IntlLocalePrototype.cpp

  Log Message:
  -----------
  [JSC] Implement `Intl.Locale.prototype.variants` getter
https://bugs.webkit.org/show_bug.cgi?id=294755

Reviewed by Yusuke Suzuki.

https://github.com/tc39/ecma402/pull/960 added `Intl.Locale.prototype.variants`
to the ECMAScript specification. The test262 test suite has also been updated 
[1].

This patch implements `Intl.Locale.prototype.variants` for JSC.

[1]: https://github.com/tc39/test262/pull/4474

* JSTests/stress/intl-locale-prototype-variants.js: Added.
(shouldBe):
(shouldThrow):
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/runtime/CommonIdentifiers.h:
* Source/JavaScriptCore/runtime/IntlLocale.cpp:
(JSC::LocaleIDBuilder::overrideLanguageScriptRegionVariants):
(JSC::IntlLocale::initializeLocale):
(JSC::IntlLocale::variants):
(JSC::LocaleIDBuilder::overrideLanguageScriptRegion): Deleted.
* Source/JavaScriptCore/runtime/IntlLocale.h:
* Source/JavaScriptCore/runtime/IntlLocalePrototype.cpp:
(JSC::JSC_DEFINE_CUSTOM_GETTER):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to