aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js')
-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| {