DescriptionFix declarations escaping global strict eval.
According to ES5 10.4.2(3), eval calls of strict code always require
their own lexical and variable environment. For now we just add a new
scope when we parse the strict mode directive. The clean solution would
be to always have this sope present (even for global eval calls) and
adapt variable binding to cope with that.
R=rossberg@chromium.org
BUG=v8:1624
TEST=mjsunit/regress/regress-1624,test262/S10.4.2.1_A1
Committed: https://code.google.com/p/v8/source/detail?r=11057
Patch Set 1 #Patch Set 2 : Addressed comments by Andreas Rossberg. #
Messages
Total messages: 4 (0 generated)
|