On Tue, Feb 11, 2014 at 2:40 PM, Claude Pache <[email protected]>wrote:
> According to the current version of the ES6 spec [1], `Symbol(desc)`, when > `desc` is not `undefined`, coerces its argument to a string and uses it as > a description for a newly created symbol. In particular, if `sym` is a > symbol, `Symbol(sym)` throws a TypeError (it can't be coerced to string). > > Intuitively, I would expect that `Symbol(sym)` just returns `sym`, just > like `Number(num)` returns `num`, or, more generally, just like > `Primitive(x)` casts its argument to the corresponding primitive. > Intuitively, I wouldn't expect anything else but this--I think this is just a minor authoring oversight. Please file at https://bugs.ecmascript.org/ Rick
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

