Index: src/parsing/parse-info.cc |
diff --git a/src/parsing/parse-info.cc b/src/parsing/parse-info.cc |
index 30dd285588a9e3d415ebb2b8be5e0222de7c768f..78f637bc4191df8d076c0bf7455a06a1ed8250b1 100644 |
--- a/src/parsing/parse-info.cc |
+++ b/src/parsing/parse-info.cc |
@@ -47,6 +47,7 @@ ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) |
set_unicode_cache(isolate_->unicode_cache()); |
set_language_mode(shared->language_mode()); |
set_shared_info(shared); |
+ set_module(shared->kind() == FunctionKind::kModule); |
Handle<Script> script(Script::cast(shared->script())); |
set_script(script); |