diff options
Diffstat (limited to 'deps/v8/src/rewriter.cc')
-rw-r--r-- | deps/v8/src/rewriter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/src/rewriter.cc b/deps/v8/src/rewriter.cc index aa274d484e..64d7b3684c 100644 --- a/deps/v8/src/rewriter.cc +++ b/deps/v8/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()) { |