Skip to content
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

fix the issue: addLocalFolderAsync causes stack overflow when a lot of files are filtered #430

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

miserylee
Copy link
Contributor

the 'next' function is recursive, when a lot of files be filtered, too many tasks are pushed into stack, and the error below throws:
UnhandledException: [RangeError] Maximum call stack size exceeded

the pull request make the 'next' function to be called in next tick, to avoid the problem

@geekeren
Copy link

met same issue: stack overflow

@cthackers cthackers merged commit 08826ca into cthackers:master Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants