diff options
-rw-r--r-- | src/bun.js/bindings/exports.zig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bun.js/bindings/exports.zig b/src/bun.js/bindings/exports.zig index a362af743..8f8f6f6f2 100644 --- a/src/bun.js/bindings/exports.zig +++ b/src/bun.js/bindings/exports.zig @@ -1326,11 +1326,16 @@ pub const ZigConsoleClient = struct { }; } - if (callable) { + if (callable and js_type == .JSFunction) { return .{ .tag = .Function, .cell = js_type, }; + } else if (callable and js_type == .InternalFunction) { + return .{ + .tag = .Object, + .cell = js_type, + }; } // Is this a react element? |