js-callgraph icon indicating copy to clipboard operation
js-callgraph copied to clipboard

Fix invalid string length error in JSON.stringify when handling big projects

Open icemonster opened this issue 4 years ago • 0 comments

This fixes memory and invalid string length errors in JSON.stringify when dumping the CG as a JSON.

Adapted this solution: https://dev.to/madhunimmo/json-stringify-rangeerror-invalid-string-length-3977 as it fits very well in our use case, as our JSON object is a simple array of (possibly many) short objects.

icemonster avatar May 19 '21 13:05 icemonster