test(ecmascript): add comments and tests for cases where ToPropertyKey throws an error
#9429
+7
−0
ToPropertyKey throws an error
#9429