Issue #1240 - Part 2 - Define the BigIntObject class for BigInt wrapper objects. Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1366287 Part 3. In our Part 3 we will fast forward to the V8 implementation skipping GMP.

This commit is contained in:
Brian Smith 2023-07-13 02:40:25 -05:00 committed by roytam1
commit 13ac0d6483
15 changed files with 338 additions and 9 deletions

View file

@ -3737,7 +3737,7 @@ js::ToStringSlow(ExclusiveContext* cx, typename MaybeRooted<Value, allowGC>::Han
} else if (v.isBigInt()) {
if (!allowGC)
return nullptr;
str = BigInt::toString(cx, v.toBigInt());
str = BigInt::toString(cx, v.toBigInt(), 10);
} else {
MOZ_ASSERT(v.isUndefined());
str = cx->names().undefined;