mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
testing: fix undefined not being reported correctly in results
Fixes #125669
This commit is contained in:
@@ -224,6 +224,10 @@ function serializeError(err) {
|
||||
function safeStringify(obj) {
|
||||
const seen = new Set();
|
||||
return JSON.stringify(obj, (key, value) => {
|
||||
if (value === undefined) {
|
||||
return '[undefined]';
|
||||
}
|
||||
|
||||
if (isObject(value) || Array.isArray(value)) {
|
||||
if (seen.has(value)) {
|
||||
return '[Circular]';
|
||||
|
||||
Reference in New Issue
Block a user