Comment #4 on issue 686 by [email protected]: "With" and function scope
http://code.google.com/p/v8/issues/detail?id=686
Thanks for the clarification Brendan! You are right I completely missed the
fact that FunctionDeclaration
can appear only as a SourceElement not as a Statement.
I've taken a quick glance on V8 sources and discovered that it allows
FunctionDeclaration as a Statement
[http://code.google.com/p/v8/source/browse/branches/bleeding_edge/src/parser.cc#1807].
Judging by the comment inside ParseFunctionDeclaration it was a deliberate
decision
[http://code.google.com/p/v8/source/browse/branches/bleeding_edge/src/parser.cc#1996].
-Vyacheslav Egorov.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev