Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2e5ec08882e660b34004f9b0d7825a579010d7c2
https://github.com/WebKit/WebKit/commit/2e5ec08882e660b34004f9b0d7825a579010d7c2
Author: itsu-dev <[email protected]>
Date: 2026-09-02 (Wed, 02 Sep 2026)
Changed paths:
A JSTests/stress/intl-pluralrules-mathematical-value.js
M Source/JavaScriptCore/runtime/IntlPluralRules.cpp
M Source/JavaScriptCore/runtime/IntlPluralRules.h
M Source/JavaScriptCore/runtime/IntlPluralRulesPrototype.cpp
Log Message:
-----------
[JSC] Support `BigInt` for `Intl.PluralRules.select` and
`Intl.PluralRules.selectRange`
https://bugs.webkit.org/show_bug.cgi?id=323092
Reviewed by Yusuke Suzuki.
According to [1][2], the `Intl.PluralRules.select` and
`Intl.PluralRules.selectRange` methods should support
`BigInt` values as their arguments, but the current implementation supports
only `Number` values.
The test262 test suites has also been updated [3][4].
[1]: https://github.com/tc39/ecma402/pull/1026
[2]: https://tc39.es/ecma402/#sec-intl.pluralrules.prototype.select
[3]: https://github.com/tc39/test262/pull/4912
[4]: https://github.com/tc39/test262/pull/4911
Test: JSTests/stress/intl-pluralrules-mathematical-value.js
* JSTests/stress/intl-pluralrules-mathematical-value.js: Added.
(shouldBe):
(representations):
(const.locale.of.locales.const.number.of.numbers.const.representation.of.representations):
* Source/JavaScriptCore/runtime/IntlPluralRules.cpp:
(JSC::IntlPluralRules::select const):
(JSC::IntlPluralRules::selectRange const):
* Source/JavaScriptCore/runtime/IntlPluralRules.h:
* Source/JavaScriptCore/runtime/IntlPluralRulesPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
Canonical link: https://commits.webkit.org/320396@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications