Skip to content

Commit 2a7e015

Browse files
committed
feat(serdes): dump typeof for Plain
1 parent 8c8ec93 commit 2a7e015

File tree

2 files changed

+92
-93
lines changed

2 files changed

+92
-93
lines changed

packages/qwik/src/core/shared/shared-serialization.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,9 +2073,8 @@ export const dumpState = (
20732073
if (isRaw) {
20742074
hasRaw = true;
20752075
}
2076-
const type = isRaw
2077-
? `[raw${isObject(value) ? ` ${value.constructor.name}` : ''}]`
2078-
: typeIdToName(key as TypeIds);
2076+
const type = `{${isObject(value) ? value.constructor.name : typeof value}}`;
2077+
20792078
out.push(`${RED}${type}${RESET} ${printRaw(value, `${prefix} `)}`);
20802079
} else {
20812080
if (key === TypeIds.Constant) {

0 commit comments

Comments
 (0)