summaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-02-22 22:31:24 +0100
committerMoonchild <moonchild@palemoon.org>2023-02-22 22:31:24 +0100
commitdabadd700cc71d374b58ef05b9e6e334927ed64d (patch)
tree0f851f6513f3947c1d14d3c9190ddbd3cf18051f /js/src
parentf2ef28d09c65269029ee1ac5c65524a89423008a (diff)
downloaduxp-dabadd700cc71d374b58ef05b9e6e334927ed64d.tar.gz
Issue #2046 - Follow-up: Fix debug assert using old chars definition.
Diffstat (limited to 'js/src')
-rw-r--r--js/src/builtin/intl/NumberFormat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/builtin/intl/NumberFormat.cpp b/js/src/builtin/intl/NumberFormat.cpp
index 6d39407f66..b60abb0f97 100644
--- a/js/src/builtin/intl/NumberFormat.cpp
+++ b/js/src/builtin/intl/NumberFormat.cpp
@@ -839,7 +839,7 @@ intl_FormatNumberToParts(JSContext* cx, UNumberFormat* nf, double x, MutableHand
partIndex++;
} while (true);
- MOZ_ASSERT(lastEndIndex == chars.length(),
+ MOZ_ASSERT(lastEndIndex == overallResult->length(),
"result array must partition the entire string");
result.setObject(*partsArray);