Index: src/compiler.cc |
=================================================================== |
--- src/compiler.cc (revision 3230) |
+++ src/compiler.cc (working copy) |
@@ -651,9 +651,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); |
} |
} |