Browse files

CLJS-225: fix warning about undeclared Var in cljs.reader

The reason was a typo in read-keyword; the resulting function worked
because cljs.core/keyword's binary variant currently delegates to the
unary variant anyway.
  • Loading branch information...
1 parent 29b85c2 commit 0b37c3b394e4e3c2376171bd3adb8580afdeb97e @michalmarczyk michalmarczyk committed with David Nolen May 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cljs/cljs/reader.cljs
@@ -262,7 +262,7 @@ nil if the end of stream has been reached")
(identical? (aget name (dec (.-length name))) ":")
(not (== (.indexOf token "::" 1) -1)))
(reader-error reader "Invalid token: " token)
- (if ns?
+ (if ns
(keyword (.substring ns 0 (.indexOf ns "/")) name)
(keyword token)))))

0 comments on commit 0b37c3b

Please sign in to comment.