Postpone better handling of complex objects

This commit is contained in:
~lucidiot 2022-09-19 00:23:13 +02:00
parent 2424091f23
commit 67219b24fa
1 changed files with 1 additions and 2 deletions

View File

@ -51,7 +51,6 @@ window.onload = function () {
// TODO: Cool object output and errors with stack traces?
function tryString (value) {
try {
if (value instanceof Error && value.message) return removeCarriageReturns(value.message);
return removeCarriageReturns(new String(value).toString());
} catch (err) {
// Give up, just print the type.
@ -103,7 +102,7 @@ window.onload = function () {
stack += '\n ';
current = current.caller;
}
console.log(stack.trim())
console.log(stack.trim());
}
var inputLogger = makeLogger('lightBlue');