aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-07 00:53:24 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-07 00:53:24 -0800
commit71d0e14210fb0fa1cd19c650dfd45e25dcafab98 (patch)
tree75e935f6e9859d058005672c2529bc9777245af8 /src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h
parentd925367cae1f22ad85a29ae02456286d9ccc859a (diff)
downloadbun-71d0e14210fb0fa1cd19c650dfd45e25dcafab98.tar.gz
bun-71d0e14210fb0fa1cd19c650dfd45e25dcafab98.tar.zst
bun-71d0e14210fb0fa1cd19c650dfd45e25dcafab98.zip
[bun:test] Implement `expect` in faster Zig bindings
Diffstat (limited to 'src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h')
-rw-r--r--src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h b/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h
index 0ca7db3db..ff158b59e 100644
--- a/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h
+++ b/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h
@@ -76,6 +76,12 @@ JSC::Structure* JSServerWebSocketStructure() { return m_JSServerWebSocket.getIni
JSC::LazyClassStructure m_JSServerWebSocket;
bool hasJSServerWebSocketSetterValue { false };
mutable JSC::WriteBarrier<JSC::Unknown> m_JSServerWebSocketSetterValue;
+JSC::Structure* JSExpectStructure() { return m_JSExpect.getInitializedOnMainThread(this); }
+ JSC::JSObject* JSExpectConstructor() { return m_JSExpect.constructorInitializedOnMainThread(this); }
+ JSC::JSValue JSExpectPrototype() { return m_JSExpect.prototypeInitializedOnMainThread(this); }
+ JSC::LazyClassStructure m_JSExpect;
+ bool hasJSExpectSetterValue { false };
+ mutable JSC::WriteBarrier<JSC::Unknown> m_JSExpectSetterValue;
JSC::Structure* JSTextDecoderStructure() { return m_JSTextDecoder.getInitializedOnMainThread(this); }
JSC::JSObject* JSTextDecoderConstructor() { return m_JSTextDecoder.constructorInitializedOnMainThread(this); }
JSC::JSValue JSTextDecoderPrototype() { return m_JSTextDecoder.prototypeInitializedOnMainThread(this); }