ChakraCore
ChakraCore copied to clipboard
Fix the message for implicit Symbol.toString to make it more descriptive
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.
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.
This was fixed in #5130.