[webkit-changes] [WebKit/WebKit] 4a7ae8: [JSC] Update Intl.NumberFormat's useGrouping handling
Yusuke Suzuki
noreply at github.com
Fri Oct 7 09:42:12 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4a7ae871cccb5324e996699daf4c5d9e7a8f768e
https://github.com/WebKit/WebKit/commit/4a7ae871cccb5324e996699daf4c5d9e7a8f768e
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2022-10-07 (Fri, 07 Oct 2022)
Changed paths:
M JSTests/stress/intl-numberformat-usegrouping-v3.js
M JSTests/test262/expectations.yaml
M Source/JavaScriptCore/runtime/IntlNumberFormat.cpp
M Source/JavaScriptCore/runtime/IntlObjectInlines.h
Log Message:
-----------
[JSC] Update Intl.NumberFormat's useGrouping handling
https://bugs.webkit.org/show_bug.cgi?id=246196
rdar://100877842
Reviewed by Ross Kirsling.
Update the implementation with the spec update[1], handling "true" and "false"
specially and throwing a range error for the other invalid cases.
[1]: https://github.com/tc39/proposal-intl-numberformat-v3/commit/4751da5c9c326f96a074b67ac5a8ecffe3440617
* JSTests/stress/intl-numberformat-usegrouping-v3.js:
(nonListedUseGrouping.forEach):
(specialUseGrouping.forEach):
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/runtime/IntlNumberFormat.cpp:
(JSC::IntlNumberFormat::initializeNumberFormat):
* Source/JavaScriptCore/runtime/IntlObjectInlines.h:
(JSC::intlStringOrBooleanOption):
Canonical link: https://commits.webkit.org/255275@main
More information about the webkit-changes
mailing list