diff --git a/src/javascript/jsc/bindings/exports.zig b/src/javascript/jsc/bindings/exports.zig index eefc450223..85ae5ac9e7 100644 --- a/src/javascript/jsc/bindings/exports.zig +++ b/src/javascript/jsc/bindings/exports.zig @@ -1231,6 +1231,15 @@ pub const ZigConsoleClient = struct { .cell = js_type, }; + // Cell is the "unknown" type + // if we call JSObjectGetPrivate, it can segfault + if (js_type == .Cell) { + return .{ + .tag = .NativeCode, + .cell = js_type, + }; + } + if (CAPI.JSObjectGetPrivate(value.asObjectRef()) != null) return .{ .tag = .Private,