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 listSubTreeBFS recursion. #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexmakarevich
Copy link

Prior usage of async.reduce "faked recursion" by mutating the accumulator (referred to as "memo" by async).
Newer versions of async disregard this mutation, breaking the functionality of listSubTreeBFS.

Here the method is rewritten with actual recursion.

Prior usage of async.reduce "faked recursion" by mutating the
accumulator (referred to as "memo" by async). Newer versions of async
disregard this mutation, breaking the functionality of `listSubTreeBFS`.

Here the method is rewritten with actual recursion.
@alexmakarevich
Copy link
Author

Fixes #127

@alexmakarevich
Copy link
Author

Hi @alexguan,
would be very nice of you to take a look at this PR as it fixes a severe bug.

Recursive node removal is broken ATM, something else may be broken too, if it relies on listSubTreeBFS.

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.

1 participant