Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index c5521063dd6b8bf31d400e142c39e37e2719c665..347c16c2517e186973fa556ddf3f4b0845aefd5c 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7884,6 +7884,11 @@ class Module : public Struct { |
DECL_ACCESSORS(exports, ObjectHashTable) |
+ // [[RequestedModules]]: Modules imported or re-exported by this module. |
+ // Corresponds 1-to-1 to the module specifier strings in |
+ // ModuleInfo::module_requests. |
+ DECL_ACCESSORS(requested_modules, FixedArray) |
+ |
static void CreateExport(Handle<Module> module, Handle<String> name); |
static void StoreExport(Handle<Module> module, Handle<String> name, |
Handle<Object> value); |
@@ -7891,7 +7896,8 @@ class Module : public Struct { |
static const int kCodeOffset = HeapObject::kHeaderSize; |
static const int kExportsOffset = kCodeOffset + kPointerSize; |
- static const int kSize = kExportsOffset + kPointerSize; |
+ static const int kRequestedModulesOffset = kExportsOffset + kPointerSize; |
+ static const int kSize = kRequestedModulesOffset + kPointerSize; |
private: |
DISALLOW_IMPLICIT_CONSTRUCTORS(Module); |