We're updating the issue view to help you get more done. 

'for' loop silently ignores extra forms in body

Description

1 2 3 4 5 6 7 8 $ clj -m cljs.main -re node -r ClojureScript 1.10.520 cljs.user=> (require 'cljs.js) nil cljs.user=> (cljs.js/eval-str (cljs.js/empty-state) "(for [x [1]] :a :b)" nil {:eval cljs.js/js-eval :context :expr} prn) {:ns cljs.user, :value (:a)} nil

expected:

1 2 3 4 5 $ clj Clojure 1.10.0 user=> (for [x [1]] :a :b) Execution error (ArityException) at clojure.main/main (main.java:37). Wrong number of args (3) passed to: clojure.core/for

Environment

ClojureScript 1.10.520
self-hosted

Status

Assignee

Mike Fikes

Reporter

Alex Miller

Labels

None

Approval

Accepted

Patch

Code and Test

Priority

Major