mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 22:08:40 +09:00
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:
parent
25ee810247
commit
44b5d8dec3
8 changed files with 88 additions and 54 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue