add special handling for undefined console content (#935)

This commit is contained in:
Yun Feng
2022-07-22 19:02:08 +08:00
committed by GitHub
parent 1fefbd8eb8
commit 8ad43254ff

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