Commit 67a78c40 authored by Frank Tang's avatar Frank Tang Committed by V8 LUCI CQ

[intl] NumberFormat v3 bug fix typo

Fix typo which should check y match -∞ but checked -0

Bug: v8:10776
Change-Id: I6bddbf91dbee2411d47a5e3b8ccbc456a0602bf7
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3504646Reviewed-by: 's avatarShu-yu Guo <syg@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79391}
parent 5807fdfa
......@@ -2036,7 +2036,7 @@ MaybeHandle<T> PartitionNumberRangePattern(Isolate* isolate,
MaybeHandle<T>());
}
// b. Else if y is -∞, throw a RangeError exception.
if (IsNegativeZero(isolate, y)) {
if (IsNegativeInfinity(isolate, y)) {
THROW_NEW_ERROR_RETURN_VALUE(
isolate, NewRangeError(MessageTemplate::kInvalid, x, y),
MaybeHandle<T>());
......
......@@ -2453,8 +2453,9 @@
# NumberFormat.prototype.formatRange
'intl402/NumberFormat/prototype/formatRange/en-US': [FAIL],
'intl402/NumberFormat/prototype/formatRange/pt-PT': [FAIL],
# https://github.com/tc39/test262/pull/3425
'intl402/NumberFormat/prototype/formatRange/x-greater-than-y-throws': [FAIL],
# NumberFormat.prototype.formatRangeToParts
'intl402/NumberFormat/prototype/formatRangeToParts/x-greater-than-y-throws': [FAIL],
# PluralRules.prototype.selectRange
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment