js-on-sx: typeof returns 'function' for callable-dicts + 'object' for null

This commit is contained in:
2026-04-23 23:02:15 +00:00
parent c257971bb1
commit 1079004981

View File

@@ -467,7 +467,10 @@
((= (type-of v) "number") "number")
((= (type-of v) "string") "string")
((= (type-of v) "lambda") "function")
((= (type-of v) "native-fn") "function")
((= (type-of v) "function") "function")
((= (type-of v) "component") "function")
((and (= (type-of v) "dict") (contains? (keys v) "__callable__"))
"function")
(else "object"))))
(define