From 1df422685c9da84680edc4a75c27f28a1648e79d Mon Sep 17 00:00:00 2001 From: Deuce <shurd@sasktel.net> Date: Tue, 26 Jan 2021 21:01:41 -0500 Subject: [PATCH] Aha! null is an object that isn't an Object! var x = null; if (typeof x == 'object') print(Object.keys(x).join(', ')); --- exec/load/fidocfg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/load/fidocfg.js b/exec/load/fidocfg.js index ab4dcb56a2..588d98d11b 100644 --- a/exec/load/fidocfg.js +++ b/exec/load/fidocfg.js @@ -51,7 +51,7 @@ function TickITCfg() { function lcprops(obj) { - if(typeof obj == 'object' && !Array.isArray(obj)) { + if(typeof obj == 'object' && obj !== null) { var i; var keys = Object.keys(obj); -- GitLab