aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/exports.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-27 07:26:16 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-27 07:26:16 -0800
commit964c4037deb90283f12733ea7d8a660bc0430f88 (patch)
tree3ae5bb75dee2daf8922d0d873970cf21db2b009b /src/bun.js/bindings/exports.zig
parent1bc76511ec770dc78a2fcfa8821781344c0e8e1c (diff)
downloadbun-964c4037deb90283f12733ea7d8a660bc0430f88.tar.gz
bun-964c4037deb90283f12733ea7d8a660bc0430f88.tar.zst
bun-964c4037deb90283f12733ea7d8a660bc0430f88.zip
`[console.log]` log Proxy objects
Diffstat (limited to 'src/bun.js/bindings/exports.zig')
-rw-r--r--src/bun.js/bindings/exports.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bun.js/bindings/exports.zig b/src/bun.js/bindings/exports.zig
index e5f9a1590..f18d47329 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| {