From ddf7163f6d4082dcc755303cd28056a28d7b5108 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Sat, 1 Oct 2022 17:57:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20don't=20pretty=20print=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/io.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }