Issue #2026 - Part 2a - Support BigInt in NumberFormat and toLocaleString. https://bugzilla.mozilla.org/show_bug.cgi?id=1543677

This commit is contained in:
Brian Smith 2023-07-25 01:41:42 -05:00 committed by roytam1
commit d972016c23
12 changed files with 121 additions and 70 deletions

View file

@ -1503,8 +1503,7 @@ js::ToInt8Slow(JSContext *cx, const HandleValue v, int8_t *out)
bool
js::ToNumericSlow(ExclusiveContext* cx, MutableHandleValue vp)
{
MOZ_ASSERT(!vp.isNumber());
MOZ_ASSERT(!vp.isBigInt());
MOZ_ASSERT(!vp.isNumeric());
// Step 1.
if (!vp.isPrimitive()) {