-
-
Notifications
You must be signed in to change notification settings - Fork 25
Description
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.