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)) {
|
if (Array.isArray(value)) {
|
||||||
return {
|
return {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
value: wrapArgs(value, visited)
|
value: isCircular(value, visited) ? [] : wrapArgs(value, visited)
|
||||||
}
|
}
|
||||||
} else if (Buffer.isBuffer(value)) {
|
} else if (Buffer.isBuffer(value)) {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue