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