binaryage / cljs-oops

ClojureScript macros for convenient native Javascript object access.
Other
350 stars 13 forks source link

Error thrown when using oops with js/Date objects #24

Closed efraimmgon closed 4 years ago

efraimmgon commented 4 years ago

When entering the code

(def d (js/Date.))
(oops/ocall d "toISOString")

I am getting the error

Oops, Unexpected object value (date-like) #object[devtools.toolbox.t_devtools$toolbox78167]

What gives?

darwin commented 4 years ago

Please see issue #13. It is the same problem.

efraimmgon commented 4 years ago

Nice. Thanks!

efraimmgon commented 4 years ago

Just would like to add this as an afterthought:

Is there a reason we can't have the erro msg be more clear? There probably will be more looks like me in the future.