Updates:
Status: WorkingAsIntended
Comment #2 on issue 1222 by [email protected]: function statement scope
in incorrect.
http://code.google.com/p/v8/issues/detail?id=1222
"function f() {...}" is a Function Declaration. According to ECMA spec,
this isn't a statement (see Chapter 12). Although, MDC doc states the
opposite. This is reflected in ECMA spec note telling that "Several widely
used implementations of ECMAScript are known to support the use of
FunctionDeclaration as a Statement."
To make your code portable, use an alternative syntax: "var f = function()
{}".
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev