Return empty array for circular references
This commit is contained in:
parent
ab1786c17d
commit
2cc2b8a146
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ var wrapArgs = function (args, visited) {
|
|||
if (Array.isArray(value)) {
|
||||
return {
|
||||
type: 'array',
|
||||
value: wrapArgs(value, visited)
|
||||
value: isCircular(value, visited) ? [] : wrapArgs(value, visited)
|
||||
}
|
||||
} else if (Buffer.isBuffer(value)) {
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue