core.async

Variable called 'new' in vector in go block in CLJS causes "Object has no method 'call'" error

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    ClojureScript 0.0-2202, core.async 0.1.267.0-0d7780-alpha, openjdk 7u51

Description

I seem to be having trouble with the combination of:

  • a variable named 'new'
  • wrapped in a vector
  • after a <! call in a go block.

Removing any of these conditions seems to work fine.

I've attached a few minimal examples in test_cases.clj and the JavaScript that the first error compiles down to in compiled-cljs.js - the errors occur on line 4 (I think inst_39771 is 21 in this case)

An obvious workaround is not to name the variable 'new'

Please let me know if you need anything more from me, and please go easy on me if this is in the wrong place/badly labelled etc - it's my first Clojure JIRA bug report

Thanks,

James

  1. compiled-cljs.js
    07/Apr/14 4:03 PM
    4 kB
    James Henderson
  2. test_cases.clj
    07/Apr/14 4:03 PM
    0.5 kB
    James Henderson

Activity

Hide
James Henderson added a comment -

Sorry, just spotted there's a newer release of core.async - I've reproduced this with 0.1.278.0-76b25b-alpha as well.

James

Show
James Henderson added a comment - Sorry, just spotted there's a newer release of core.async - I've reproduced this with 0.1.278.0-76b25b-alpha as well. James

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: