Index: src/ast/scopes.cc |
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc |
index 030f9f13bb1a9a2d029067cc6288d0ef9184cf9e..eee3081c7577326c459a8b40ca7fca356faad718 100644 |
--- a/src/ast/scopes.cc |
+++ b/src/ast/scopes.cc |
@@ -89,9 +89,7 @@ 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_; |
+ language_mode_ = outer_scope->language_mode_; |
force_context_allocation_ = |
!is_function_scope() && outer_scope->has_forced_context_allocation(); |
outer_scope_->AddInnerScope(this); |