diff options
Diffstat (limited to 'deps/v8/src/variables.cc')
-rw-r--r-- | deps/v8/src/variables.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/src/variables.cc b/deps/v8/src/variables.cc index 658831239c..3b1559d864 100644 --- a/deps/v8/src/variables.cc +++ b/deps/v8/src/variables.cc @@ -60,7 +60,7 @@ bool Variable::IsGlobalObjectProperty() const { // activation frame. return (IsDynamicVariableMode(mode_) || (IsDeclaredVariableMode(mode_) && !IsLexicalVariableMode(mode_))) - && scope_ != NULL && scope_->is_global_scope(); + && scope_ != NULL && scope_->is_script_scope(); } |