Index: src/ast/scopes.h |
diff --git a/src/ast/scopes.h b/src/ast/scopes.h |
index dae70c0142b1e2785833fb75f8f34af9ee26a0ed..456a28ae1871ed915bcb1de61b99fdf9421ad3be 100644 |
--- a/src/ast/scopes.h |
+++ b/src/ast/scopes.h |
@@ -243,6 +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()); |
language_mode_ = language_mode; |
} |