Reviewers: Lasse Reichstein,
Message:
PTAL.
Description:
Fix pre-parsing function declarations.
The preparser has been out of sync with the parser. As a reminder, we have
the
following grammer for harmony mode
Block ::
{ SourceElement* }
SourceElement ::
Statement
FunctionDeclaration
LetDeclaration
instead of
Block ::
{ Statement* }
SourceElement ::
Statement
FunctionDeclaration
The extension to allow FunctionDeclarations in statement positions in
non-strict code is still active.
Please review this at http://codereview.chromium.org/7983006/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/parser.cc
M src/preparser.cc
M test/mjsunit/harmony/block-let-declaration.js
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev