mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
[console.log] log Proxy objects
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user