Browse files

* src/cljs/cljs/core.cljs: CLJS-175: js->clj should not try to conver…

…t anything but Objects.
  • Loading branch information...
1 parent aef60c2 commit ebf45f5f4ecdb6032c06fcffee8c0af59fc09af1 David Nolen committed Apr 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/cljs/cljs/core.cljs
View
6 src/cljs/cljs/core.cljs
@@ -3439,9 +3439,9 @@ reduces them without incurring seq initialization"
(seq? x) (doall (map thisfn x))
(coll? x) (into (empty x) (map thisfn x))
(goog.isArray x) (vec (map thisfn x))
- (goog.isObject x) (into {} (for [k (js-keys x)]
- [(keyfn k)
- (thisfn (aget x k))]))
+ (identical? (type x) js/Object) (into {} (for [k (js-keys x)]
+ [(keyfn k)
+ (thisfn (aget x k))]))
:else x))]
(f x)))

0 comments on commit ebf45f5

Please sign in to comment.