<< Back to previous view

[ASYNC-13] go blocks don't handle explicitly namespaced calls to <! and >! Created: 22/Jul/13  Updated: 26/Jul/13  Resolved: 26/Jul/13

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

Type: Defect Priority: Minor
Reporter: Edward Cho Assignee: Timothy Baldridge
Resolution: Completed Votes: 0
Labels: None
Environment:

[org.clojure/clojure "1.5.1"]
[org.clojure/clojurescript "0.0-1844"]
[org.clojure/core.async "0.1.0-SNAPSHOT"]



 Description   

When <Unable to render embedded object: File (, >) not found., or the go macro is explicitly namespaced, the assertion that <! or >! was called outside of a go block is raised.

Example:
(ns foo
(:require [cljs.core.async :as async)
(:require-macros [cljs.core.async.macros :refer [go]))

;; raises assertion error
(let [c (async/chan)]
(async/go
(loop []
(async/<! c)
(recur))))



 Comments   
Comment by Timothy Baldridge [ 26/Jul/13 9:34 AM ]

Fixed in master https://github.com/clojure/core.async/commit/12af7d8dc207a42f388936318dd2eeb48d1b03c8

Was a problem only in CLJS

Generated at Tue Jul 29 21:58:28 CDT 2014 using JIRA 4.4#649-r158309.