tree-sitter / node-tree-sitter

Node.js bindings for tree-sitter
https://www.npmjs.com/package/tree-sitter
MIT License
663 stars 118 forks source link

Fix for the NodeClass is not a constructor issue #197

Closed segevfiner closed 8 months ago

segevfiner commented 8 months ago

If this was the real cause for the Jest failures, we can possibly restore those tests as well.

This isn't the prettiest way to handle this code wise, so feel free to suggest something cleaner, and note that I also had to handle it in CacheNodeForTree which would assert when it tries to cache a node during this state.

@verhovsky @amaanq