aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGlobalObject.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-27 19:17:05 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-27 19:17:05 -0700
commitc692cbff21f442b6e10c5af5c1139d2e45d2e2a8 (patch)
treeb5cb83c9cf64c6858cc4b822614c0427c9afad00 /src/bun.js/bindings/ZigGlobalObject.h
parent7cd1dc2817158f9a27605ec5bac33575b9ef12f3 (diff)
downloadbun-jarred/callable.tar.gz
bun-jarred/callable.tar.zst
bun-jarred/callable.zip
`makeClassCallable`jarred/callable
Diffstat (limited to '')
-rw-r--r--src/bun.js/bindings/ZigGlobalObject.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bun.js/bindings/ZigGlobalObject.h b/src/bun.js/bindings/ZigGlobalObject.h
index e27b3bffa..37e3ec1d2 100644
--- a/src/bun.js/bindings/ZigGlobalObject.h
+++ b/src/bun.js/bindings/ZigGlobalObject.h
@@ -353,6 +353,8 @@ public:
mutable WriteBarrier<JSFunction> m_thenables[promiseFunctionsSize + 1];
mutable WriteBarrier<JSC::Unknown> m_errorConstructorPrepareStackTraceValue;
+ JSFunction* makeClassCallableCallUnbound() { return m_makeClassCallableCall.getInitializedOnMainThread(this); }
+ JSFunction* makeClassCallableApplyUnbound() { return m_makeClassCallableApply.getInitializedOnMainThread(this); }
Structure* memoryFootprintStructure()
{
@@ -508,6 +510,8 @@ public:
LazyProperty<JSGlobalObject, JSObject> m_navigatorObject;
LazyProperty<JSGlobalObject, JSObject> m_performanceObject;
LazyProperty<JSGlobalObject, JSObject> m_processObject;
+ LazyProperty<JSGlobalObject, JSFunction> m_makeClassCallableCall;
+ LazyProperty<JSGlobalObject, JSFunction> m_makeClassCallableApply;
private:
DOMGuardedObjectSet m_guardedObjects WTF_GUARDED_BY_LOCK(m_gcLock);