A new function name property proposal

Axel Rauschmayer axel at rauschma.de
Sat Nov 17 04:48:29 PST 2012

> @Alex: "The name would be more useful if it could be either string or symbol"
> Please help me out :) The function will be assigned to the symbol, right? So using the symbol as name would simply be a reference to the function itself and equals to arguments.callee? Or did you mean the sourcecode of the symbol as the detected name of the function like I mentioned above?

Given that under ES6, the name of a method can be either a string or a symbol [1], I was wondering whether the latter possibility couldn’t be allowed when storing the method name in a property.

[1] http://www.2ality.com/2012/03/private-data.html

Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121117/d49f486a/attachment.html>

More information about the es-discuss mailing list