Index: src/js/macros.py |
diff --git a/src/js/macros.py b/src/js/macros.py |
index 5b6f8f9f2120084c77a1c5a78729b474061a4a19..4b29687829aeeccfef9976140f93e69966a13636 100644 |
--- a/src/js/macros.py |
+++ b/src/js/macros.py |
@@ -95,7 +95,7 @@ macro IS_NUMBER(arg) = (typeof(arg) === 'number'); |
macro IS_STRING(arg) = (typeof(arg) === 'string'); |
macro IS_BOOLEAN(arg) = (typeof(arg) === 'boolean'); |
macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol'); |
-macro IS_OBJECT(arg) = (typeof(arg) === 'object'); |
+macro IS_OBJECT(arg) = (typeof(arg) === 'object' && arg !== null); |
macro IS_ARRAY(arg) = (%_IsArray(arg)); |
macro IS_DATE(arg) = (%_IsDate(arg)); |
macro IS_FUNCTION(arg) = (%_IsFunction(arg)); |