Issue #2046 - Follow-up: Fix debug assert using old chars definition.

This commit is contained in:
Moonchild 2023-02-22 22:31:24 +01:00 committed by roytam1
commit fa014f9e95

View file

@ -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);