Index: src/ast/scopes.h |
diff --git a/src/ast/scopes.h b/src/ast/scopes.h |
index c3f7d5966545aca637aad7913c86ffb3cf511389..d35a20231519c77fb9a921bc33ac72e62feed411 100644 |
--- a/src/ast/scopes.h |
+++ b/src/ast/scopes.h |
@@ -243,7 +243,7 @@ class Scope: public ZoneObject { |
// Set the language mode flag (unless disabled by a global flag). |
void SetLanguageMode(LanguageMode language_mode) { |
- DCHECK(!is_module_scope()); |
+ DCHECK(!is_module_scope() || is_strict(language_mode)); |
language_mode_ = language_mode; |
} |