Chromium Code Reviews| Index: src/ast/scopes.cc |
| diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc |
| index 030f9f13bb1a9a2d029067cc6288d0ef9184cf9e..8d0ed0132bbc7b91c4cd04fe6baf1152a3be4ce0 100644 |
| --- a/src/ast/scopes.cc |
| +++ b/src/ast/scopes.cc |
| @@ -89,9 +89,8 @@ Scope::Scope(Zone* zone, Scope* outer_scope, ScopeType scope_type) |
| DCHECK_EQ(SCRIPT_SCOPE, scope_type); |
| } else { |
| asm_function_ = outer_scope_->asm_module_; |
| - // Inherit the language mode from the parent scope unless we're a module |
| - // scope. |
| - if (!is_module_scope()) language_mode_ = outer_scope->language_mode_; |
| + // Inherit the language mode from the parent scope. |
|
neis
2016/08/17 15:22:52
Feel free to remove the comment completely.
|
| + language_mode_ = outer_scope->language_mode_; |
| force_context_allocation_ = |
| !is_function_scope() && outer_scope->has_forced_context_allocation(); |
| outer_scope_->AddInnerScope(this); |