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: expand meta_property to include import.meta #331

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

jackschu
Copy link
Contributor

@jackschu jackschu commented Jul 7, 2024

The estree spec includes import.meta as a new meta_property in es2020

https://github.com/estree/estree/blob/master/es2020.md#metaproperty

tree-sitter-javascript already considered new.target as a meta_property, which was inline inline with the spec at the time https://github.com/estree/estree/blob/master/es2015.md#metaproperty

So this diff brings us up-to-date and gives editors / tools the ability to treat these two meta properties similarly.

I also altered a test and re-generated with treesitter v0.22.6

@amaanq amaanq merged commit b1fd0b2 into tree-sitter:master Jul 20, 2024
4 checks passed
@amaanq
Copy link
Member

amaanq commented Jul 20, 2024

ty!

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.

2 participants