Skip to content

Commit 6ae18eb

Browse files
martinklepschdnolen
authored and
dnolen
committed
CLJS-1475: indicate that cljs.reader/read is safe
1 parent 82a3c14 commit 6ae18eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/cljs/cljs/reader.cljs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,9 @@ nil if the end of stream has been reached")
438438

439439
(defn read
440440
"Reads the first object from a PushbackReader. Returns the object read.
441-
If EOF, throws if eof-is-error is true. Otherwise returns sentinel."
441+
If EOF, throws if eof-is-error is true. Otherwise returns sentinel.
442+
443+
Only supports edn (similar to clojure.edn/read)"
442444
[reader eof-is-error sentinel is-recursive]
443445
(let [ch (read-char reader)]
444446
(cond

0 commit comments

Comments
 (0)