🐛 don't pretty print null
This commit is contained in:
parent
02bb1a43e9
commit
ddf7163f6d
@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user