diff options
| author | 2023-01-17 23:41:01 -0800 | |
|---|---|---|
| committer | 2023-01-17 23:41:17 -0800 | |
| commit | bd5b90fbf143756f5de8ba5eb560cb6449177300 (patch) | |
| tree | 59bcbf7c2cbe91dba887ea1b788410d90ba1e07a /src/bun.js/bindings/ZigGlobalObject.h | |
| parent | bba4054da3a5cbc2f234b9cf4b3ebdb7bb19e69d (diff) | |
| download | bun-bd5b90fbf143756f5de8ba5eb560cb6449177300.tar.gz bun-bd5b90fbf143756f5de8ba5eb560cb6449177300.tar.zst bun-bd5b90fbf143756f5de8ba5eb560cb6449177300.zip | |
Fix lifetime issue in require.resolve
Diffstat (limited to 'src/bun.js/bindings/ZigGlobalObject.h')
| -rw-r--r-- | src/bun.js/bindings/ZigGlobalObject.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bun.js/bindings/ZigGlobalObject.h b/src/bun.js/bindings/ZigGlobalObject.h index 36c0356bc..3b8f4c342 100644 --- a/src/bun.js/bindings/ZigGlobalObject.h +++ b/src/bun.js/bindings/ZigGlobalObject.h @@ -243,6 +243,9 @@ public: JSC::JSFunction* emitReadableNextTickFunction() { return m_emitReadableNextTickFunction.getInitializedOnMainThread(this); } + Structure* requireResolveFunctionStructure() { return m_requireResolveFunctionStructure.getInitializedOnMainThread(this); } + JSObject* requireResolveFunctionPrototype() { return m_resolveFunctionPrototype.getInitializedOnMainThread(this); } + JSC::JSObject* processObject() { return m_processObject.getInitializedOnMainThread(this); @@ -444,6 +447,8 @@ private: LazyProperty<JSGlobalObject, JSObject> m_subtleCryptoObject; LazyProperty<JSGlobalObject, Structure> m_JSHTTPResponseController; LazyProperty<JSGlobalObject, JSC::Structure> m_JSBufferSubclassStructure; + LazyProperty<JSGlobalObject, JSC::Structure> m_requireResolveFunctionStructure; + LazyProperty<JSGlobalObject, JSObject> m_resolveFunctionPrototype; DOMGuardedObjectSet m_guardedObjects WTF_GUARDED_BY_LOCK(m_gcLock); void* m_bunVM; |
