Chromium Code Reviews| Index: src/rewriter.cc |
| diff --git a/src/rewriter.cc b/src/rewriter.cc |
| index aa274d484ee3be48a360f690ce20a796d0259b3d..64d7b3684c4d9f67c9b61fca5316ff2d8aa2318f 100644 |
| --- a/src/rewriter.cc |
| +++ b/src/rewriter.cc |
| @@ -218,7 +218,7 @@ bool Rewriter::Rewrite(CompilationInfo* info) { |
| ASSERT(function != NULL); |
| Scope* scope = function->scope(); |
| ASSERT(scope != NULL); |
| - if (scope->is_function_scope()) return true; |
| + if (!scope->is_global_scope() && !scope->is_eval_scope()) return true; |
| ZoneList<Statement*>* body = function->body(); |
| if (!body->is_empty()) { |