ChakraCore icon indicating copy to clipboard operation
ChakraCore copied to clipboard

Fix the message for implicit Symbol.toString to make it more descriptive

Open akroshg opened this issue 10 years ago • 2 comments

say for String(Object(Symbol()));

We throw : TypeError: Object doesn't support property or method 'ToString' There were suggestion made in #422 to make it more descriptive.

akroshg avatar Mar 03 '16 01:03 akroshg

First ToString should be toString. Second the error message should really be something like cannot implicitly convert symbol to string because the the current string is misleading since toString on a symbol does exist and work if it is explicitly called.

ianwjhalliday avatar Mar 03 '16 03:03 ianwjhalliday

This was fixed in #5130.

sethbrenith avatar Oct 08 '18 16:10 sethbrenith