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

0 votes
in ClojureScript by

...which would enable safe extension of key cljs protocols to types without modifying their prototypes, e.g. CLJS-523.

3 Answers

0 votes
by

Comment made by: dnolen

Date is the only JS native case that I'm aware of that we don't handle. One tricky bit is that goog.typeOf won't give us the information we need, but I think instanceof should cover us here?

0 votes
by

Comment made by: fogus

instanceof or the ever-gruesome toString.call(aDate) == '(link: object Date)' will work.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-525 (reported by cemerick)
...