diff options
author | Moonchild <moonchild@palemoon.org> | 2023-02-22 22:31:24 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-02-22 22:31:24 +0100 |
commit | dabadd700cc71d374b58ef05b9e6e334927ed64d (patch) | |
tree | 0f851f6513f3947c1d14d3c9190ddbd3cf18051f /js/src | |
parent | f2ef28d09c65269029ee1ac5c65524a89423008a (diff) | |
download | uxp-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.cpp | 2 |
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);
|