diff --git a/ext/console/01_console.js b/ext/console/01_console.js index 49216abddf..9270cc540b 100644 --- a/ext/console/01_console.js +++ b/ext/console/01_console.js @@ -931,7 +931,8 @@ function formatRaw(ctx, value, recurseTimes, typedArray, proxyDetails) { // Preact JSX if ( - constructor === undefined && value !== null && typeof value === "object" + value.constructor === undefined && value !== null && + typeof value === "object" && "__k" in value ) { return serialize(ctx, preactAdapter, value, ctx.indentationLvl, 10); }