From 71d0e14210fb0fa1cd19c650dfd45e25dcafab98 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Mon, 7 Nov 2022 00:53:24 -0800 Subject: [bun:test] Implement `expect` in faster Zig bindings --- src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h') 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 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 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); } -- cgit v1.2.3