mirror of
https://github.com/tauri-apps/tauri-toml.git
synced 2026-02-04 02:11:18 +01:00
fix(parser): Limit integers to 64bit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user