summaryrefslogtreecommitdiff
path: root/deps/v8/src/rewriter.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-07-05 11:41:56 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-07-05 11:41:56 -0700
commit6054dcc1302d1a1ef51e215dcf1ad16fb967f1ba (patch)
treebfdb8d58cdbe55de1e1e05a8331b0a1623f9aaa5 /deps/v8/src/rewriter.cc
parent33af2720f26c2b25bc7f75ce7eb454ff99db6d35 (diff)
downloadnode-new-6054dcc1302d1a1ef51e215dcf1ad16fb967f1ba.tar.gz
Upgrade V8 to 3.4.9
Diffstat (limited to 'deps/v8/src/rewriter.cc')
-rw-r--r--deps/v8/src/rewriter.cc2
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()) {