Return value of 'eval("function z() {...}"'?

Dave Fugate dfugate at microsoft.com
Thu Feb 24 14:39:05 PST 2011


By ES5.1, what would we expect to be 'x' in the following snippet:
                x = eval("function z() {return 1;}");

'undefined', 'z', or something else entirely?

Thanks!

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110224/57cb8be2/attachment.html>


More information about the es-discuss mailing list