From 4c36e6e6e801aa4321a79f2703c4756a88bc7391 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Sat, 30 Sep 2023 11:29:03 +0200 Subject: [PATCH] fix: Preact JSX detection --- ext/console/01_console.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }