aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGlobalObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/bindings/ZigGlobalObject.h')
-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 bd065ee36..41c304e10 100644
--- a/src/bun.js/bindings/ZigGlobalObject.h
+++ b/src/bun.js/bindings/ZigGlobalObject.h
@@ -353,7 +353,11 @@ public:
JSC::Structure* pendingVirtualModuleResultStructure() { return m_pendingVirtualModuleResultStructure.get(this); }
// When a napi module initializes on dlopen, we need to know what the value is
+ // This value is not observed by GC. It should be extremely ephemeral.
JSValue pendingNapiModule = JSValue {};
+ // We need to know if the napi module registered itself or we registered it.
+ // To do that, we count the number of times we register a module.
+ int napiModuleRegisterCallCount = 0;
#include "ZigGeneratedClasses+lazyStructureHeader.h"