Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

MetaProperty support #506

Merged
merged 2 commits into from
Jan 24, 2016
Merged

MetaProperty support #506

merged 2 commits into from
Jan 24, 2016

Conversation

steve-gray
Copy link
Contributor

Hello,

I've just made a contribution to ESCodeGen to support MetaProperties, and this is the change to add the support for this into Istanbul.

The upstream dependency is: estools/escodegen#275

This will have no immediate effect until they release the upstream version. The change implements a 'skipSelf' option on the node, allowing an early bailout from the child node walker since unlike other property expressions, both 'meta' and 'property' on the MetaProperty node are just strings, and cannot have additional sub-properties added due to strings being read only.

My question is: Is this the right way to go about this? It's very hard to run the NPM test suite on Windows due to the shell scripting and Unix-paths used in places, but in some local testing this appears to work fine.

@gotwarlost
Copy link
Owner

LGTM. I need to forward port this fix into the v1 branch as well in the instrumentation library. Will merge this PR when I'm ready to do this.

@steve-gray
Copy link
Contributor Author

Quick heads up: escodegen has published 1.8.0 that includes my fix, so in theory this is good to go.

@steve-gray
Copy link
Contributor Author

Is there a timeframe for this making it's way into the wild?

gotwarlost added a commit that referenced this pull request Jan 24, 2016
@gotwarlost gotwarlost merged commit 048b4b3 into gotwarlost:master Jan 24, 2016
@gotwarlost
Copy link
Owner

Available in istanbul@0.4.3 - sorry for the delay.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants