Fun impossible Firefox JS challenge

gaz Heyes gazheyes at
Fri Apr 13 01:01:33 PDT 2012

Ok here is my solution:


So initially I thought the with statement was required to switch the
context of "function::" but this also worked:

However this doesn't work on Firefox 11:

So what I think happens is Firefox looks for the true function in the
window object then can't find it so falls back to the parent object with is
the current anon function.

It can also be called using eval as eval is in the current scope:

I guess the shortest you can possibly make it is:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list