diff --git a/js/apps/system/aardvark/frontend/js/bootstrap/module-internal.js b/js/apps/system/aardvark/frontend/js/bootstrap/module-internal.js index 199493b360..dde737c9d3 100644 --- a/js/apps/system/aardvark/frontend/js/bootstrap/module-internal.js +++ b/js/apps/system/aardvark/frontend/js/bootstrap/module-internal.js @@ -1100,12 +1100,12 @@ context.output += context.names[p]; } else { - if (value instanceof Object) { + if (value instanceof Object || value.__proto__ === null) { context.seen.push(value); context.names.push(context.path); } - if (value instanceof Object) { + if (value instanceof Object || value.__proto__ === null) { if (customInspect && typeof value._PRINT === "function") { value._PRINT(context); @@ -1117,7 +1117,7 @@ else if (value instanceof Array) { printArray(value, context); } - else if (value.__proto__ === Object.prototype) { + else if (value.toString === Object.prototype.toString || value.__proto__ === null) { printObject(value, context); if (context.emit && context.output.length >= context.emit) {