fix: require.extensions uses Strong instead of being clever (#19231)

This commit is contained in:
chloe caruso
2025-04-23 17:52:41 -07:00
committed by GitHub
parent 1294128b47
commit 80aff24951
41 changed files with 254 additions and 315 deletions

View File

@@ -237,8 +237,8 @@ const SocketMonitor = struct {
pub const PostgresSQLContext = struct {
tcp: ?*uws.SocketContext = null,
onQueryResolveFn: JSC.Strong = .empty,
onQueryRejectFn: JSC.Strong = .empty,
onQueryResolveFn: JSC.Strong.Optional = .empty,
onQueryRejectFn: JSC.Strong.Optional = .empty,
pub fn init(globalObject: *JSC.JSGlobalObject, callframe: *JSC.CallFrame) bun.JSError!JSC.JSValue {
var ctx = &globalObject.bunVM().rareData().postgresql_context;
@@ -2847,7 +2847,7 @@ pub const PostgresSQLConnection = struct {
};
pub const PostgresCachedStructure = struct {
structure: JSC.Strong = .empty,
structure: JSC.Strong.Optional = .empty,
// only populated if more than JSC.JSC__JSObject__maxInlineCapacity fields otherwise the structure will contain all fields inlined
fields: ?[]JSC.JSObject.ExternColumnIdentifier = null,