Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index d450a2aa353b9694b18fd3c5da7bf58f4ea0176e..429d7a262bb7d54abf781028b8aa567a34bcf3e2 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -566,6 +566,7 @@ void Parser::DeserializeScopeChain( |
scope = Scope::DeserializeScopeChain(info->isolate(), zone(), *context, |
script_scope, ast_value_factory(), |
deserialization_mode); |
+ DCHECK(!info->is_module() || scope->is_module_scope()); |
if (info->context().is_null()) { |
DCHECK(deserialization_mode == |
Scope::DeserializationMode::kDeserializeOffHeap); |