Welcome! Please see the About page for a little more info on how this works.

0 votes
ago in ClojureScript by

Hello

In Clojure, I can do:

(parents String)
; #{java.lang.constant.ConstantDesc java.lang.Object java.lang.CharSequence java.io.Serializable java.lang.constant.Constable java.lang.Comparable}

But in ClojureScript:

(parents js/String)
; nil

ClojureScript's parents doc does mention "JavaScript type inheritance":

Returns the immediate parents of tag, either via a JavaScript type
inheritance relationship
or a relationship established via derive. h
must be a hierarchy obtained from make-hierarchy, if not supplied
defaults to the global hierarchy

Is there something wrong with the syntax I used?

Is parents really supposed to work with JavaScript inheritance on ClojureScript?

ago by
Quoting David Nolen when I mentioned that the docstring might be wrong: "well, more like [proxy is] unfinished - we should fix that not the docstring".

Please log in or register to answer this question.

...