From acfd028e8f859a0e8139b7adab5d319e326c2373 Mon Sep 17 00:00:00 2001 From: dave caruso Date: Tue, 5 Sep 2023 17:41:39 -0700 Subject: feat(runtime): Implement `fs.watchFile` (#4467) * really lame prototype * uses threads but badly * it works i guess * unwatchFile but lame * it works * test * a * aomitcs * fix unwatching race condition * use hasPendingActivity and GC stuff better * test * revert this --- 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 0596372b4..2c075a508 100644 --- a/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h +++ b/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h @@ -244,6 +244,12 @@ JSC::Structure* JSServerWebSocketStructure() { return m_JSServerWebSocket.getIni JSC::LazyClassStructure m_JSServerWebSocket; bool hasJSServerWebSocketSetterValue { false }; mutable JSC::WriteBarrier m_JSServerWebSocketSetterValue; +JSC::Structure* JSStatWatcherStructure() { return m_JSStatWatcher.getInitializedOnMainThread(this); } + JSC::JSObject* JSStatWatcherConstructor() { return m_JSStatWatcher.constructorInitializedOnMainThread(this); } + JSC::JSValue JSStatWatcherPrototype() { return m_JSStatWatcher.prototypeInitializedOnMainThread(this); } + JSC::LazyClassStructure m_JSStatWatcher; + bool hasJSStatWatcherSetterValue { false }; + mutable JSC::WriteBarrier m_JSStatWatcherSetterValue; JSC::Structure* JSStatsStructure() { return m_JSStats.getInitializedOnMainThread(this); } JSC::JSObject* JSStatsConstructor() { return m_JSStats.constructorInitializedOnMainThread(this); } JSC::JSValue JSStatsPrototype() { return m_JSStats.prototypeInitializedOnMainThread(this); } -- cgit v1.2.3