New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stack overflow calling SortedSet.toArray() #164
Comments
In which JS environment, browser or node? A use case would be appreciated |
Seems the recursive solution has outlived it usefulness. Any interest in
|
I experienced it in Node. Here is a simple reproduction: const SortedSet = require("collections/sorted-set");
const vals = [];
for (let i = 0; i < 10000; i++) {
vals.push(i);
}
const set = new SortedSet(vals);
console.log(set.toArray());
|
I have a SortedSet with 9904 entries (simple one-level maps). Calling .toArray() always throws a call stack exceeded error.
The text was updated successfully, but these errors were encountered: