add special handling for undefined console content (#935)

This commit is contained in:
Yun Feng
2026-04-01 12:00:00 +08:00
committed by GitHub
parent fb320b1000
commit 8278b63f0a

View File

@@ -117,9 +117,8 @@ export function stringify(
}
/* END of the FORK */
if (value === null || value === undefined) {
return value;
}
if (value === null) return value;
if (value === undefined) return 'undefined';
if (shouldIgnore(value as object)) {
return toString(value as object);
}