Skip to content

Error: RangeError: Maximum call stack size exceeded #817

@adbruijns

Description

@adbruijns

Description

Error: RangeError: Maximum call stack size exceeded

xmlData is a large xhtml file - about 46MB

Input

After updating from 5.5.10 to 5.5.12 the parser gives the above error!
The 5.5.10 version, or lower, works fine.

Code

const parser = new XMLParser(options));
try {
const jObj = parser.parse(xmlData)
return jObj;
} catch (err) {
throw new Error(err);
}

Output

Image

expected data

Would you like to work on this issue?

  • Yes
  • No

Bookmark this repository for further updates. Visit SoloThought to know about recent features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions