toml-node icon indicating copy to clipboard operation
toml-node copied to clipboard

Toml parsing fails with Invalid array length on big arrays defined inside a toml

Open lukasholzer opened this issue 2 years ago • 0 comments

When performing a parse of a toml file that has a huge set of items inside an array I get an error with RangeError: Invalid array length

CleanShot 2022-06-08 at 14 37 30@2x

image

I've created here a reproducible example: https://stackblitz.com/edit/node-yjwouc?file=index.js In this case I've created a toml with an array of 10k + entries where inside the arrays there are long strings as well.

lukasholzer avatar Jun 08 '22 12:06 lukasholzer