js-on-sx: typeof returns 'function' for callable-dicts + 'object' for null
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user