0
0

🐛 don't pretty print null

This commit is contained in:
DrMaxNix 2022-10-01 17:57:44 +02:00
parent 02bb1a43e9
commit ddf7163f6d

View File

@ -22,7 +22,7 @@ class Juicescript_io {
debug: (text, additional) => { debug: (text, additional) => {
// PRETTY PRINT INCOMMING DATA? // // PRETTY PRINT INCOMMING DATA? //
// object // object
if(typeof text === "object"){ if(text !== null && typeof text === "object"){
text = "Object" + "\n" + JSON.stringify(text, null, 4) + "\n"; text = "Object" + "\n" + JSON.stringify(text, null, 4) + "\n";
} }