diff options
author | 2022-06-25 04:41:20 -0700 | |
---|---|---|
committer | 2022-06-25 04:41:20 -0700 | |
commit | 8fbd92e37de61766a72fe0c4a1c98a5fb058c00c (patch) | |
tree | c8cbe1fa0b0d5251f0835057b9fdd3e3bc51651a /src/bun.js/bindings/ZigGlobalObject.h | |
parent | 7bb75f55530e52447b9c68bc5b0908bf734ba184 (diff) | |
download | bun-8fbd92e37de61766a72fe0c4a1c98a5fb058c00c.tar.gz bun-8fbd92e37de61766a72fe0c4a1c98a5fb058c00c.tar.zst bun-8fbd92e37de61766a72fe0c4a1c98a5fb058c00c.zip |
Cleanup some of the require code
Diffstat (limited to 'src/bun.js/bindings/ZigGlobalObject.h')
-rw-r--r-- | src/bun.js/bindings/ZigGlobalObject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bun.js/bindings/ZigGlobalObject.h b/src/bun.js/bindings/ZigGlobalObject.h index cabaf57a9..b5a2f99da 100644 --- a/src/bun.js/bindings/ZigGlobalObject.h +++ b/src/bun.js/bindings/ZigGlobalObject.h @@ -159,6 +159,7 @@ public: JSC::JSValue ArrayBufferSinkPrototype() { return m_JSArrayBufferSinkClassStructure.prototypeInitializedOnMainThread(this); } JSC::JSValue JSReadableArrayBufferSinkControllerPrototype() { return m_JSArrayBufferControllerPrototype.getInitializedOnMainThread(this); } JSC::JSMap* readableStreamNativeMap() { return m_lazyReadableStreamPrototypeMap.getInitializedOnMainThread(this); } + JSC::JSMap* requireMap() { return m_requireMap.getInitializedOnMainThread(this); } void* bunVM() { return m_bunVM; } bool isThreadLocalDefaultGlobalObject = false; @@ -186,6 +187,7 @@ private: LazyProperty<JSGlobalObject, JSObject> m_JSArrayBufferControllerPrototype; LazyProperty<JSGlobalObject, JSObject> m_importMetaObjectStructure; LazyProperty<JSGlobalObject, JSMap> m_lazyReadableStreamPrototypeMap; + LazyProperty<JSGlobalObject, JSMap> m_requireMap; DOMGuardedObjectSet m_guardedObjects WTF_GUARDED_BY_LOCK(m_gcLock); void* m_bunVM; |