Skip to content

Dependencies don't fully support ES2015 classes #37

@redbugz

Description

@redbugz

We have some code that uses ast-query, and it has started choking on some newer ES2015 features. The current error we get is this:
Error: Unknown node type Super.
at Controller.traverse (my-project/node_modules/estraverse/estraverse.js:518:31)
at traverse (my-project/node_modules/estraverse/estraverse.js:710:27)
at Object.attachComments (my-project/node_modules/estraverse/estraverse.js:799:9)
at new Tree (my-project/node_modules/ast-query/lib/tree.js:33:25)
at module.exports (my-project/node_modules/ast-query/lib/tree.js:115:10)
....

After digging in, it appears that escodegen-wallaby has an outdated dependency on estraverse (1.9.x), which causes it to fail to parse certain newer code. estraverse has been updated with the fixes (4.x), but escodegen-wallaby has not been updated to use it. There is already an open issue on the upstream escodegen repo to update the estraverse dependency.

Just FYI. Feel free to close since the issue is really with escodegen-wallaby.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions