<< Back to previous view

[CLJS-558] CLONE - closures act like js not clojure Created: 27/Jul/13  Updated: 27/Jul/13  Resolved: 27/Jul/13

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Blocker
Reporter: Anonymous Assignee: Rich Hickey
Resolution: Completed Votes: 0
Labels: None


 Description   

(loop [i 0 j ()]
(if (< i 5)
(recur (inc i) (conj j (fn [] i)))
(map #(%) j)))

In Clojure, this returns: `(4 3 2 1 0)`

In ClojureScript it returns: `(5 5 5 5 5)`

Imported from github issue #85



 Comments   
Comment by David Nolen [ 27/Jul/13 1:45 PM ]

cloned, was resolved

Generated at Wed Oct 01 17:20:09 CDT 2014 using JIRA 4.4#649-r158309.