From 8fbd92e37de61766a72fe0c4a1c98a5fb058c00c Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sat, 25 Jun 2022 04:41:20 -0700 Subject: Cleanup some of the require code --- src/bun.js/bindings/ZigGlobalObject.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bun.js/bindings/ZigGlobalObject.h') 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 m_JSArrayBufferControllerPrototype; LazyProperty m_importMetaObjectStructure; LazyProperty m_lazyReadableStreamPrototypeMap; + LazyProperty m_requireMap; DOMGuardedObjectSet m_guardedObjects WTF_GUARDED_BY_LOCK(m_gcLock); void* m_bunVM; -- cgit v1.2.3