Skip to content
Browse files

CLJS-333: add missing arity to cljs.core.Keyword's IFn implementation

  • Loading branch information...
1 parent 76a3335 commit 04e44e444f9bf63d2833d8ff9f87fdb32ac9de48 @michalmarczyk michalmarczyk committed with David Nolen Jul 4, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/cljs/cljs/core.cljs
6 src/cljs/cljs/core.cljs
@@ -1726,7 +1726,11 @@ reduces them without incurring seq initialization"
(let [strobj (.-strobj coll)]
(if (nil? strobj)
(-lookup coll k nil)
- (aget strobj k))))))
+ (aget strobj k)))))
+ (invoke [_ coll not-found]
+ (if (nil? coll)
+ not-found
+ (-lookup coll k not-found))))
(extend-type js/String

0 comments on commit 04e44e4

Please sign in to comment.
Something went wrong with that request. Please try again.