Reviewers: Lasse Reichstein,

Description:
Revert "Revert "Fix a bug in scope analysis.""

Reapply r8783 with an additional fix.

Because the preparser and parser do not use the same scope analysis to
determine if a function can be lazily compiled, the parser can have false
positives.  Rather than treating this as a parse error, treat the preparser
as authoritative and eagerly compile the function.

[email protected]
BUG=
TEST=


Please review this at http://codereview.chromium.org/7565003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/parser.cc
  A test/mjsunit/regress/regress-91120.js


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to