The first one makes no sense to me, since a symbol can be used as a property 
key. The latter one makes sense but the error should be "Cannot convert a 
Symbol value to a string".
>From: [email protected]
>Date: Sat, 27 Dec 2014 08:17:40 +0100
>>Both exceptions make a lot of sense, but I don’t see that in the spec. The 
>>way I’d expect it to happen is via `Symbol.prototype[@@toPrimitive]` �C it 
>>would always throw. But that’s not the case.                                  
>>    
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to