Open
Description
Currently, number literal will be parsed by the following code:
node-jsonc-parser/src/impl/parser.ts
Lines 515 to 519 in 3c9b420
It would be better to add a feature that allow detecting the number and parsing it with BigInt, like:
// -9007199254740991 ~ 9007199254740991
// More precise checking could be used, here's only a demo
if (/^-?\d{16,}$/.test(tokenValue)) {
value = BigInt(tokenValue)
}
Metadata
Assignees
Labels
No labels
Activity