I'm guessing this is a joke on the part of the developers - can't think of any useful reason why they'd do this, but they probably thought that as it was a non-standard property it doesn't matter...
On 14 January 2011 16:44, Fran <[email protected]> wrote: > I tried in FF and it does print "(an empty string)" > > > > On 14/01/11 16:36, Poetro wrote: > >> 2011/1/14 Amit Agarwal<[email protected]>: >> >>> name property of a function returns its name. >>> >>> (function (){ >>> console.log(arguments.callee.name); >>> })(); >>> >>> Above code prints "(an empty string)" instead of "". Why? >>> >> Where does it print "(an empty string)"? It doesnt print for me >> anything in Opera, Chrome or Node.js, While IE8 prints "undefined". >> > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected]<jsmentors%[email protected]> > -- Nick Morgan http://skilldrick.co.uk @skilldrick <http://twitter.com/skilldrick> -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
