diff --git a/lib/js/runtime.sx b/lib/js/runtime.sx index e5aac187..72d0b735 100644 --- a/lib/js/runtime.sx +++ b/lib/js/runtime.sx @@ -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