| Index: src/compiler/ast-loop-assignment-analyzer.cc
|
| diff --git a/src/compiler/ast-loop-assignment-analyzer.cc b/src/compiler/ast-loop-assignment-analyzer.cc
|
| index 22438c720a878bfde9110b1c1a5a89487e90d2ce..f1469f76f75803e4e3672cac2b0c498305018c11 100644
|
| --- a/src/compiler/ast-loop-assignment-analyzer.cc
|
| +++ b/src/compiler/ast-loop-assignment-analyzer.cc
|
| @@ -252,10 +252,12 @@ void ALAA::VisitForStatement(ForStatement* loop) {
|
|
|
|
|
| void ALAA::VisitForInStatement(ForInStatement* loop) {
|
| + Expression* l = loop->each();
|
| Enter(loop);
|
| - Visit(loop->each());
|
| + Visit(l);
|
| Visit(loop->subject());
|
| Visit(loop->body());
|
| + if (l->IsVariableProxy()) AnalyzeAssignment(l->AsVariableProxy()->var());
|
| Exit(loop);
|
| }
|
|
|
|
|