diff --git a/js/common/bootstrap/module-console.js b/js/common/bootstrap/module-console.js index c28b3d3f3b..ef76c08b3b 100644 --- a/js/common/bootstrap/module-console.js +++ b/js/common/bootstrap/module-console.js @@ -118,6 +118,9 @@ else if (arg === null) { arg = "null"; } + else if (arg instanceof Date || arg instanceof RegExp) { + arg = String(arg); + } else if (Object.prototype.isPrototypeOf(arg) || Array.isArray(arg)) { arg = inspect(arg, {prettyPrint: false}); }