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

[BUGFIX] Ensure tagForProperty works on class constructors #17691

Merged
merged 2 commits into from Mar 3, 2019

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Mar 2, 2019

tagForProperty was returning the constant tag for functions, which
meant it would return the constant tag for properties on class
constructors. If a computed property was defined on the class
constructor it would fail because of this.

Fixes #17651

@pzuraq pzuraq force-pushed the bugfix/ensure-tag-for-property-works-on-classes branch from af03e24 to 800dab3 Compare March 3, 2019 03:50
@pzuraq pzuraq requested a review from rwjblue March 3, 2019 03:50
Chris Garrett added 2 commits March 2, 2019 20:26
`tagForProperty` was returning the constant tag for functions, which
meant it would return the constant tag for properties on class
constructors. If a computed property was defined on the class
constructor it would fail because of this.
@pzuraq pzuraq force-pushed the bugfix/ensure-tag-for-property-works-on-classes branch from 800dab3 to 479a5d4 Compare March 3, 2019 04:38
@rwjblue rwjblue merged commit c707dc7 into master Mar 3, 2019
@rwjblue rwjblue deleted the bugfix/ensure-tag-for-property-works-on-classes branch March 3, 2019 16:31
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.

None yet

2 participants