[intl] NumberFormat v3 bug fix

Fix typo which cause morePrecision output for lessPrecision

Bug: v8:10776
Change-Id: I164abbdfa30ae1c4064a75abdd04fdbb1118dc0d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3501835
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79392}
This commit is contained in:
Frank Tang 2022-03-04 22:08:51 -08:00 committed by V8 LUCI CQ
parent 67a78c40be
commit 11cd961474
2 changed files with 1 additions and 2 deletions

View File

@ -662,7 +662,7 @@ Handle<String> RoundingPriorityString(Isolate* isolate,
if ((found = skeleton.indexOf("#s")) >= 0 ||
(found = skeleton.indexOf("@s")) >= 0) {
if (found + 2 == skeleton.length() || skeleton[found + 2] == ' ') {
return ReadOnlyRoots(isolate).morePrecision_string_handle();
return ReadOnlyRoots(isolate).lessPrecision_string_handle();
}
}
return ReadOnlyRoots(isolate).auto_string_handle();

View File

@ -2449,7 +2449,6 @@
# https://bugs.chromium.org/p/v8/issues/detail?id=10776
'intl402/NumberFormat/constructor-roundingIncrement': [FAIL],
'intl402/NumberFormat/test-option-roundingPriority': [FAIL],
# NumberFormat.prototype.formatRange
'intl402/NumberFormat/prototype/formatRange/en-US': [FAIL],
'intl402/NumberFormat/prototype/formatRange/pt-PT': [FAIL],