You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Let parts be ? PartitionNumberRangePattern (numberFormat, x, y).
...
4. For each part in parts, do
d. Perform ! CreateDataPropertyOrThrow(O, "source", part.[[Source]]).
ICU 71 added new enum value UNUM_APPROXIMATELY_SIGN_FIELD
need to map to "approximatelySign"
We also discover a spec bug in
tc39/proposal-intl-numberformat-v3#99
All the parts of formatRangeToParts should have a source "shared" for
the case that start and end are the same or very close.
Bug: chromium:1336865
Change-Id: I89142479989d3d2017d8cb89194db737710c38ed
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3717278
Reviewed-by: Shu-yu Guo <[email protected]>
Commit-Queue: Frank Tang <[email protected]>
Cr-Commit-Position: refs/heads/main@{#81286}
In FormatNumericRangeToParts
https://tc39.es/proposal-intl-numberformat-v3/out/numberformat/diff.html#sec-formatnumericrangetoparts
but in PartitionNumberRangePattern
https://tc39.es/proposal-intl-numberformat-v3/out/numberformat/diff.html#sec-partitionnumberrangepattern
and
in FormatApproximately
https://tc39.es/proposal-intl-numberformat-v3/out/numberformat/diff.html#sec-formatapproximately
this mean step 4-d in PartitionNumberRangePattern may get a part without [[Source]].
I think this is a spec bug and we should change step 3 of FormatApproximately to
instead.
The text was updated successfully, but these errors were encountered: