Lexical scoping of 'function' in sloppy mode breaks legal ES5
till at tillschneidereit.net
Mon Aug 19 12:37:39 PDT 2013
On Mon, Aug 19, 2013 at 7:20 PM, Andreas Rossberg <rossberg at google.com>wrote:
> On 19 August 2013 19:02, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
> > Does V8 crash on the simpler example? Does it produce a ReferenceError
> (not conforming to ES5) on the call to g()? You're implementation may be
> the best test of what occurs in practice.
> V8 works fine on the simpler example, and it seems that FF and Safari
> do, too. So such code could be out in the wild.
SpiderMonkey and JSC accept both of the example scripts - and print 1 for
both of them.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss