Skip to content

Commit

Permalink
'block-children' helper function should return nil when given a nil a…
Browse files Browse the repository at this point in the history
…rgument. Fixes #331
  • Loading branch information
jonase authored and David Nolen committed Jul 4, 2012
1 parent 04e44e4 commit 8caff59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/cljs/analyzer.clj
Expand Up @@ -231,8 +231,8 @@
:throw throw-expr
:children [throw-expr]}))

(defn- block-children [{:keys [statements ret]}]
(conj (vec statements) ret))
(defn- block-children [{:keys [statements ret] :as block}]
(when block (conj (vec statements) ret)))

(defmethod parse 'try*
[op env [_ & body :as form] name]
Expand Down

0 comments on commit 8caff59

Please sign in to comment.