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: tolerate symbols as property names #547

Merged
merged 2 commits into from
Dec 18, 2020
Merged

fix: tolerate symbols as property names #547

merged 2 commits into from
Dec 18, 2020

Conversation

erights
Copy link
Contributor

@erights erights commented Dec 17, 2020

If the value of prop is a symbol ${prop} throws whereas ${String(prop)} produces a pleasing diagnostic. Should only be used to generate diagnostic text since the stringified from of a symbol is a valid string name for a property.

See Agoric/agoric-sdk#2094

@erights erights merged commit f16bbc3 into master Dec 18, 2020
@erights erights deleted the tolerate-symbols branch December 18, 2020 01:49
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