| Index: src/variables.cc
|
| diff --git a/src/variables.cc b/src/variables.cc
|
| index 658831239cf79c2c4c753cf6ed820d0657f2abca..3b1559d8645301d8f3e152bb69433a1baede518f 100644
|
| --- a/src/variables.cc
|
| +++ b/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();
|
| }
|
|
|
|
|
|
|