aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGlobalObject.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-25 04:41:20 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-25 04:41:20 -0700
commit8fbd92e37de61766a72fe0c4a1c98a5fb058c00c (patch)
treec8cbe1fa0b0d5251f0835057b9fdd3e3bc51651a /src/bun.js/bindings/ZigGlobalObject.h
parent7bb75f55530e52447b9c68bc5b0908bf734ba184 (diff)
downloadbun-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.h2
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;