Skip to content

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

@lukasholzer

Description

@lukasholzer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions