[CLJS-525] Allow hashtable lookup used for numbers and strings to be extended to other built-in types Created: 17/Jun/13 Updated: 17/Jun/13
...which would enable safe extension of key cljs protocols to types without modifying their prototypes, e.g.
|Comment by David Nolen [ 17/Jun/13 2:56 PM ]|
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?
|Comment by Fogus [ 17/Jun/13 3:05 PM ]|
instanceof or the ever-gruesome toString.call(aDate) == '[object Date]' will work.