| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index 255fd288862e9f5e3fcec38e070c969f77e62d8e..ff7d61dcfb5d00445dfe5dbeca28e79746ecb466 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -994,8 +994,6 @@ FunctionLiteral* Parser::DoParseProgram(ParseInfo* info, Scope** scope,
|
| if (!(*scope)->is_script_scope() || is_strict(info->language_mode())) {
|
| *scope = NewScope(*scope, EVAL_SCOPE);
|
| }
|
| - } else if (info->is_global()) {
|
| - *scope = NewScope(*scope, SCRIPT_SCOPE);
|
| } else if (info->is_module()) {
|
| *scope = NewScope(*scope, MODULE_SCOPE);
|
| }
|
|
|