Skip to content

Commit

Permalink
CLJS-225: fix warning about undeclared Var in cljs.reader
Browse files Browse the repository at this point in the history
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
michalmarczyk authored and David Nolen committed May 4, 2012
1 parent 29b85c2 commit 0b37c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cljs/cljs/reader.cljs
Expand Up @@ -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)))))

Expand Down

0 comments on commit 0b37c3b

Please sign in to comment.