Chromium Code Reviews| Index: src/rewriter.cc |
| diff --git a/src/rewriter.cc b/src/rewriter.cc |
| index 351c4bd75c8139cc0eca6a0e66099d3292c9e694..7172dec74b7efca0ba097dbb725475d41fc30e87 100644 |
| --- a/src/rewriter.cc |
| +++ b/src/rewriter.cc |
| @@ -229,7 +229,7 @@ bool Rewriter::Rewrite(CompilationInfo* info) { |
| DCHECK(function != NULL); |
| Scope* scope = function->scope(); |
| DCHECK(scope != NULL); |
| - if (!scope->is_global_scope() && !scope->is_eval_scope()) return true; |
| + if (!scope->is_script_scope() && !scope->is_eval_scope()) return true; |
| ZoneList<Statement*>* body = function->body(); |
| if (!body->is_empty()) { |