Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in 2-arity get-in: Don't know how to create ISeq from: clojure.lang.Symbol when the keys are coming from a var #33

Open
rap1ds opened this issue Apr 12, 2023 · 0 comments

Comments

@rap1ds
Copy link

rap1ds commented Apr 12, 2023

Steps to reproduce:

Type to CLJS REPL:

cljs.user> (def o #js {"foo" 1})
;; => #'cljs.user/o
cljs.user> (def ks [:foo])
;; => #'cljs.user/ks
cljs.user> (j/get-in o ks)
Compile Exception: Don't know how to create ISeq from: clojure.lang.Symbol  

Expected: (j/get-in o ks) to return 1

Actual: Exception is thrown.

Note that the following works just fine:

cljs.user> (def o #js {"foo" 1})
;; => #'cljs.user/o
cljs.user> (j/get-in o [:foo])
;; => 1
cljs.user> (def o #js {"foo" 1})
;; => #'cljs.user/o
cljs.user> (def ks [:foo])
;; => #'cljs.user/ks
cljs.user> (j/get-in o ks "not found, but the 3-arity version works just fine")
;; => 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant