Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 33c9bb870f26a176ab51f790ffb36e1af764e50d..534d8a55411c5ef0793492901dad3a345302b776 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -7961,6 +7961,14 @@ Object* ModuleInfoEntry::module_request() const { |
return get(kModuleRequestIndex); |
} |
+ModuleInfo* Module::info() const { |
+ DisallowHeapAllocation no_gc; |
+ SharedFunctionInfo* shared = code()->IsSharedFunctionInfo() |
+ ? SharedFunctionInfo::cast(code()) |
+ : JSFunction::cast(code())->shared(); |
+ return shared->scope_info()->ModuleDescriptorInfo(); |
+} |
+ |
FixedArray* ModuleInfo::module_requests() const { |
return FixedArray::cast(get(kModuleRequestsIndex)); |
} |