From 964c4037deb90283f12733ea7d8a660bc0430f88 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sun, 27 Nov 2022 07:26:16 -0800 Subject: [PATCH] `[console.log]` log Proxy objects --- src/bun.js/bindings/exports.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bun.js/bindings/exports.zig b/src/bun.js/bindings/exports.zig index e5f9a15904..f18d473296 100644 --- a/src/bun.js/bindings/exports.zig +++ b/src/bun.js/bindings/exports.zig @@ -1380,6 +1380,13 @@ pub const ZigConsoleClient = struct { }; } + if (js_type == .PureForwardingProxy) { + return Tag.get( + JSC.JSValue.c(JSC.C.JSObjectGetProxyTarget(value.asObjectRef())), + globalThis, + ); + } + // Is this a react element? if (js_type.isObject()) { if (value.get(globalThis, "$$typeof")) |typeof_symbol| {