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