Use empty string constructor name when missing

This commit is contained in:
Kevin Sawicki 2016-07-06 13:06:48 -07:00
parent d67dfd09fd
commit a9b43a0fc9
2 changed files with 3 additions and 2 deletions

View file

@ -60,7 +60,7 @@ var wrapArgs = function (args, visited) {
ret = {
type: 'object',
name: value.constructor != null ? value.constructor.name : 'Object',
name: value.constructor != null ? value.constructor.name : '',
members: []
}
for (prop in value) {