Skip to content

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

@rap1ds

Description

@rap1ds

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions