> @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 a...@rauschma.de home: rauschma.de twitter: twitter.com/rauschma blog: 2ality.com
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss