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

Dave Fugate dfugate at
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?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list