diff options
Diffstat (limited to 'deps/v8/src/objects/module.h')
-rw-r--r-- | deps/v8/src/objects/module.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/deps/v8/src/objects/module.h b/deps/v8/src/objects/module.h index ee59d97bd1..7680f55313 100644 --- a/deps/v8/src/objects/module.h +++ b/deps/v8/src/objects/module.h @@ -78,6 +78,11 @@ class Module : public Struct { // [script]: Script from which the module originates. DECL_ACCESSORS(script, Script) + // The value of import.meta inside of this module. + // Lazily initialized on first access. It's the hole before first access and + // a JSObject afterwards. + DECL_ACCESSORS(import_meta, Object) + // Get the ModuleInfo associated with the code. inline ModuleInfo* info() const; @@ -119,7 +124,8 @@ class Module : public Struct { static const int kDfsAncestorIndexOffset = kDfsIndexOffset + kPointerSize; static const int kExceptionOffset = kDfsAncestorIndexOffset + kPointerSize; static const int kScriptOffset = kExceptionOffset + kPointerSize; - static const int kSize = kScriptOffset + kPointerSize; + static const int kImportMetaOffset = kScriptOffset + kPointerSize; + static const int kSize = kImportMetaOffset + kPointerSize; private: friend class Factory; |