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 incorrect error when calling non-existent symbol property #1501

Closed
wants to merge 1 commit into from

Conversation

ianwjhalliday
Copy link
Collaborator

We threw 'Object does not support ToString' when trying to call a symbol
property on an object when that property didn't exist. This happened
because we try to do a toString conversion on the index var for the
error message string, but Symbol objects do not support toString via
JavascriptConversion::ToString().

Fix it by special casing symbol properties and directly calling the
static JavascriptSymbol::ToString method to get a useful string.

Fixes #1409

We threw 'Object does not support ToString' when trying to call a symbol
property on an object when that property didn't exist.  This happened
because we try to do a toString conversion on the index var for the
error message string, but Symbol objects do not support toString via
JavascriptConversion::ToString().

Fix it by special casing symbol properties and directly calling the
static JavascriptSymbol::ToString method to get a useful string.

Fixes chakra-core#1409
@ianwjhalliday
Copy link
Collaborator Author

@tcare @boingoing @Microsoft/chakra-es cc @bterlson

@tcare
Copy link
Contributor

tcare commented Oct 27, 2016

Looks good

@tcare
Copy link
Contributor

tcare commented Nov 1, 2016

Checked in as 61e4635

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

3 participants