Issue #1240 - Part 5b - BigInt support for basic arithmetic operations. https://bugzilla.mozilla.org/show_bug.cgi?id=1471134 Parts 3-5.

This commit is contained in:
Brian Smith 2023-07-19 02:19:32 -05:00 committed by roytam1
commit 44b5d8dec3
8 changed files with 88 additions and 54 deletions

View file

@ -529,6 +529,7 @@ Number(JSContext* cx, unsigned argc, Value* vp)
return false;
if (args[0].isBigInt())
args[0].setNumber(BigInt::numberValue(args[0].toBigInt()));
MOZ_ASSERT(args[0].isNumber());
}
if (!isConstructing) {