diff --git a/src/io.js b/src/io.js index 47aa520..6c06dbd 100644 --- a/src/io.js +++ b/src/io.js @@ -22,7 +22,7 @@ class Juicescript_io { debug: (text, additional) => { // PRETTY PRINT INCOMMING DATA? // // object - if(typeof text === "object"){ + if(text !== null && typeof text === "object"){ text = "Object" + "\n" + JSON.stringify(text, null, 4) + "\n"; }