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(helpers): Fix prototype construction #561

Merged
merged 4 commits into from
Apr 6, 2023

Conversation

koddsson
Copy link
Contributor

@koddsson koddsson commented Apr 3, 2023

The protochain array was coming back as [undefined, 'at'] for "foo".at(1) rather than coming back as ["String", "at"] which makes it look up the correct compat data in the dataset.

I check for a string literal and return ["String"] for it in member expressions so that the protochain key is created correctly.

I did the same fix for ArrayExpression so that the constructed protochain returns "Array" and I also added an e2e test and updated the compatibility databases.

Fixes: #395, #539, #445, #540

@koddsson koddsson changed the title Fix prototype construction fix: Fix prototype construction Apr 3, 2023
@koddsson koddsson changed the title fix: Fix prototype construction fix(helpers): Fix prototype construction Apr 3, 2023
@amilajack
Copy link
Owner

thanks for this! github actions seem to be taking a long time so i've tested this locally and everything works. merging 🥳

@amilajack amilajack merged commit ee75483 into amilajack:main Apr 6, 2023
@koddsson koddsson deleted the fix-prototype-construction branch April 6, 2023 18:53
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.

No warning on unsupported methods missing object name
2 participants