mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fix: Preact JSX detection
This commit is contained in:
parent
b445e0c790
commit
4c36e6e6e8
1 changed files with 2 additions and 1 deletions
|
@ -931,7 +931,8 @@ function formatRaw(ctx, value, recurseTimes, typedArray, proxyDetails) {
|
||||||
|
|
||||||
// Preact JSX
|
// Preact JSX
|
||||||
if (
|
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);
|
return serialize(ctx, preactAdapter, value, ctx.indentationLvl, 10);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue