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

Added simple support for MetaProperty #275

Merged
merged 2 commits into from
Dec 15, 2015
Merged

Added simple support for MetaProperty #275

merged 2 commits into from
Dec 15, 2015

Conversation

steve-gray
Copy link
Contributor

Support for MetaProperty node type. A very straighforward variant of the MemberExpression, with little work required. This lets syntax such as new.target get parsed in ES6 code.

@Constellation
Copy link
Member

Looks nice. Could you add a test?

@steve-gray
Copy link
Contributor Author

Would you recommend adding it to Harmony.js?

@steve-gray
Copy link
Contributor Author

Had to add tests to a new harmony-2.5.js file that works against esprima ^2.5 due to differences in behaviour that invalidate other tests, and I didn't fancy going through and doing all the changes and potentially invalidating tests for unrelated features.

@Constellation
Copy link
Member

Ah. OK. Looks fine.

Constellation added a commit that referenced this pull request Dec 15, 2015
Added simple support for MetaProperty
@Constellation Constellation merged commit 77fe8bb into estools:master Dec 15, 2015
@Constellation
Copy link
Member

Thanks!!!

@steve-gray
Copy link
Contributor Author

Any chance of pushing a release so I can pursue this through with the Istanbul team for a downstream change to add this support there?

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