Skip to content

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.

3 participants