From 0b37c3b394e4e3c2376171bd3adb8580afdeb97e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Marczyk?= Date: Thu, 3 May 2012 01:17:59 +0200 Subject: [PATCH] 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. --- src/cljs/cljs/reader.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cljs/cljs/reader.cljs b/src/cljs/cljs/reader.cljs index 8ef99d3ee5..b557354c49 100644 --- a/src/cljs/cljs/reader.cljs +++ b/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)))))