Index: src/variables.cc |
diff --git a/src/variables.cc b/src/variables.cc |
index 32ad5bc5dd4d09329ed1bd702106d3e0ee6dbcf9..64311d925d92c16bd04a6a2316a69b1db0e7d814 100644 |
--- a/src/variables.cc |
+++ b/src/variables.cc |
@@ -81,10 +81,11 @@ Variable::Variable(Scope* scope, |
} |
-bool Variable::is_global() const { |
+bool Variable::IsGlobalObjectProperty() const { |
// Temporaries are never global, they must always be allocated in the |
// activation frame. |
- return mode_ != TEMPORARY && scope_ != NULL && scope_->is_global_scope(); |
+ return mode_ != TEMPORARY && mode_ != LET && mode_ != CONST_HARMONY |
+ && scope_ != NULL && scope_->is_global_scope(); |
} |