1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix: Preact JSX detection

This commit is contained in:
Marvin Hagemeister 2023-09-30 11:29:03 +02:00
parent b445e0c790
commit 4c36e6e6e8

View file

@ -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);
}