Skip to content

Does not traverse on manually appended nodes #104

@sanex3339

Description

@sanex3339

replace walker does not traverse on manually appended nodes.

code:

var s = {'abc': 'cde'};

For example, when traversal enters in ObjectExpression node, it replaces this node and manually appends some other nodes at the parent BlockStatement node of this ObjectExpression node.

var s = {}; // this node is replaced by return from `enter` function
s['abc'] = 'abc'; // this node is appended manually

After that, traversal does not walk on newly added nodes on the current traversal loop in both enter and leave callbacks.

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