What version of CLJS are you using? The patch was introduced in CLJS
1.9.183. Running on Planck this seems to work:

cljs.user=> (js->clj (clj->js {"a" 1}) :keywordize-keys true)
{:a 1}

I have a vague memory that some of the types in the DOM API behave like JS
objects, but aren’t actually JS primitives (strings, arrays), so js->clj
doesn’t work as expected on them. From memory ClientRect
<https://developer.mozilla.org/en-US/docs/Web/API/Element/getClientRects>
(or something like it) was one of these. That could possibly be the issue?

On Mon, Feb 27, 2017 at 6:07 AM Varga Radu <[email protected]>
wrote:

> On Thursday, 7 January 2016 18:10:22 UTC+1, Nicolás Berger  wrote:
> > Pretty old thread, but it turns out there's a bug in the 1-arity version
> of js->clj: it passes a map instead of keyword arguments to set the default
> of :keywordize-keys false. It works fine, because keywordize-keys ends as
> nil by default, which is falsey of course... But when you (or me, like I
> did a few minutes ago :) ) try to do the same but passing {:keywordize-keys
> true} you find that it doesn't work as you expect.
> >
> > Just sent a patch to fix this:
> http://dev.clojure.org/jira/browse/CLJS-1540
>
> The option ":keywordize-keys" still doesn't work for me.
> Usage: (js->clj response :keywordize-keys true))
> I still get the stringed-key array-map.
> Any ideas why?
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/clojurescript.
>
-- 

Daniel

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to