DescriptionFix a bug in scope analysis.
When recompiling code (e.g., when optimizing) we could incorrectly hoist
some function expressions. This leads to incorrect results or a crash. The
root cause was that functions were not correctly categorized as expression
or declaration at parse time.
This requires some extra hoops to prevent the print name "anonymous" for
functions created by 'new Function' from establishing a binding.
R=vegorov@chromium.org,kasperl@chromium.org
BUG=1583
TEST=regress-1583
Committed: http://code.google.com/p/v8/source/detail?r=8838
Patch Set 1 #Patch Set 2 : Fix a bug. #
Total comments: 5
Messages
Total messages: 2 (0 generated)
|