Currently, only Number.prototype.toString() is used in the optimizer, but it has a disadvantage: it would be limited by MAX_SAFE_INTEGER. BigInt.prototype.toString() is not affected by that. To get number in BigInt type, you can just call "return "+number written in string+"n" in Function().
Currently, only
Number.prototype.toString()is used in the optimizer, but it has a disadvantage: it would be limited byMAX_SAFE_INTEGER.BigInt.prototype.toString()is not affected by that. To get number inBigInttype, you can just call "return "+number written in string+"n" inFunction().