From fa014f9e952df6e3bc4916e94ef28c825d8db75f Mon Sep 17 00:00:00 2001 From: Moonchild Date: Wed, 22 Feb 2023 22:31:24 +0100 Subject: [PATCH] Issue #2046 - Follow-up: Fix debug assert using old chars definition. --- js/src/builtin/intl/NumberFormat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/builtin/intl/NumberFormat.cpp b/js/src/builtin/intl/NumberFormat.cpp index 4fc08a0920..1fe6b8299f 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);