Index: src/ast/variables.cc |
diff --git a/src/ast/variables.cc b/src/ast/variables.cc |
index f80822d1a6622ff244253cfbfd8becc5122a2335..9856be7daaff907f159cde32558827caa10c5772 100644 |
--- a/src/ast/variables.cc |
+++ b/src/ast/variables.cc |
@@ -54,7 +54,7 @@ bool Variable::IsGlobalObjectProperty() const { |
// activation frame. |
return (IsDynamicVariableMode(mode_) || |
(IsDeclaredVariableMode(mode_) && !IsLexicalVariableMode(mode_))) && |
- scope_ != NULL && scope_->is_script_scope() && !is_this(); |
+ scope_ != NULL && scope_->is_script_scope(); |
} |
@@ -62,7 +62,7 @@ bool Variable::IsStaticGlobalObjectProperty() const { |
// Temporaries are never global, they must always be allocated in the |
// activation frame. |
return (IsDeclaredVariableMode(mode_) && !IsLexicalVariableMode(mode_)) && |
- scope_ != NULL && scope_->is_script_scope() && !is_this(); |
+ scope_ != NULL && scope_->is_script_scope(); |
} |