core.async

(CLJS) let-bindings unavailable in #js literals in go-blocks

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    [org.clojure/clojure "1.7.0-alpha5"]
    [org.clojure/clojurescript "0.0-2760"]
    [org.clojure/core.async "0.1.346.0-17112a-alpha"]

Description

As far as I can see, let bindings are unavailable in #js-literals within go-blocks, ie:

(go (let [a 1] (js/console.log #js[a])))

prints `[ undefined ]` instead of `[1]`

It happens both with `#js[..]` and `#js{..}`

To make it easier to reproduce the bug, I've created a minimal repository github.com/rasmuserik/cljs-bug with project.clj etc.

Activity

There are no comments yet on this issue.

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated: