Updates:
Status: WorkingAsIntended
Owner: LasseReichsteinHolstNielsen
Comment #6 on issue 686 by [email protected]: "With" and function scope
http://code.google.com/p/v8/issues/detail?id=686
The current behavior is not expected to change.
As Brendan Eich pointed out, the specification does not specify the
behavior of the
code. It would be a syntax error if it wasn't for browsers extending the
language.
Different browsers extend the language in different ways, giving different
meaning to
"function statements". The differences between browsers are so significant
that it
wasn't standardized in ES5.
V8 currently copies the JSC/Safari behavior, and that is, as Vyacheslav
says,
intended.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev