diff --git a/src/Stew/internals/inspect.js b/src/Stew/internals/inspect.js index 9984a55..6fc44a9 100644 --- a/src/Stew/internals/inspect.js +++ b/src/Stew/internals/inspect.js @@ -7,7 +7,7 @@ Stew.prototype[util.inspect.custom] = function(depth, opts) { if (this.type == "list") { data = `[ ${this.map( v => `${ (typeof v == "string") ? `"${v}"` : - (typeof v == "object") ? `[${v[1].constructor.name}]` : + (typeof v == "object") ? `[${v.constructor.name}]` : v }`).join(", ")} ]`; }