[console.log] log Proxy objects

This commit is contained in:
Jarred Sumner
2022-11-27 07:26:16 -08:00
parent 1bc76511ec
commit 964c4037de

View File

@@ -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| {