Allow hashtable lookup used for numbers and strings to be extended to other built-in types

Description

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

Environment

None

Activity

Show:
David Nolen
June 17, 2013, 8: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?

Fogus
June 17, 2013, 9:05 PM

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

Assignee

Unassigned

Reporter

Chas Emerick

Labels

None

Approval

None

Patch

None

Priority

Major
Configure