Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.async by

This ClojureScript compiles and runs as expected:

(let [circle (dom/getElement "circle")]
  (go-loop [x 20]
    (<! (timeout 10))
    (set! (.-value (.-baseVal (.-cx circle))) x)
    (recur (inc x))))

But if I change the set! line to:

(set! (.. circle -cx -baseVal -value) x)

I get the following error:

Wrong number of args (3) passed to: core$-DOT

For further discussion see (link: https://groups.google.com/d/topic/clojurescript/ONMaEho4K0c/discussion)

2 Answers

0 votes
by

Comment made by: hellofunk

I too noticed this, but only when using the .. operator in a go loop. The linked thread further suggests this is a core.async problem with this operator.

0 votes
by
Reference: https://clojure.atlassian.net/browse/ASYNC-49 (reported by alex+import)
...