From f4e678f84fd570aed762ab01bc368dfbc2eaeb78 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Thu, 13 Sep 2018 10:24:11 -0700 Subject: [PATCH] fix(parser): Limit integers to 64bit --- lib/toml-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/toml-parser.js b/lib/toml-parser.js index 1acba00..d564683 100644 --- a/lib/toml-parser.js +++ b/lib/toml-parser.js @@ -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