fix(parser): Limit integers to 64bit

This commit is contained in:
Rebecca Turner
2018-09-13 10:24:11 -07:00
parent 385ba63995
commit f4e678f84f

View File

@@ -169,7 +169,7 @@ const _inspect = (utilInspect && utilInspect.custom) || 'inspect'
class BoxedBigInt {
constructor (value) {
try {
this.value = global.BigInt(value)
this.value = global.BigInt.asIntN(64, value)
} catch (_) {
/* istanbul ignore next */
this.value = null