<< Back to previous view

[ASYNC-49] (CLJS) cljs IOC macro issue with double-dot form Created: 12/Jan/14  Updated: 13/Feb/17

Status: Open
Project: core.async
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Paul Butcher Assignee: Unassigned
Resolution: Unresolved Votes: 3
Labels: None

ClojureScript 0.0-2138


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 https://groups.google.com/d/topic/clojurescript/ONMaEho4K0c/discussion

Comment by HF [ 05/Jun/15 8:49 AM ]

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.

Generated at Mon Mar 25 23:50:58 CDT 2019 using JIRA 4.4#649-r158309.