Chromium Code Reviews| Index: src/compiler.cc |
| =================================================================== |
| --- src/compiler.cc (revision 3342) |
| +++ src/compiler.cc (working copy) |
| @@ -646,9 +646,8 @@ |
| void CodeGenSelector::VisitDeclaration(Declaration* decl) { |
| - Variable* var = decl->proxy()->var(); |
| - if (!var->is_global() || var->mode() == Variable::CONST) { |
| - BAILOUT("Non-global declaration"); |
| + if (decl->fun() != NULL) { |
| + ProcessExpression(decl->fun(), Expression::kValue); |
| } |
| } |