Skip to content

Commit 2390b79

Browse files
committed
add Reader pre-condition to cljs.analyzer/forms-seq*
1 parent f2897be commit 2390b79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/clj/cljs/analyzer.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,6 +1963,7 @@
19631963
accepts a filename argument which will be used in any emitted errors."
19641964
([^Reader rdr] (forms-seq* rdr nil))
19651965
([^Reader rdr filename]
1966+
{:pre [(instance? Reader rdr)]}
19661967
(let [pbr (readers/indexing-push-back-reader
19671968
(PushbackReader. rdr) 1 filename)
19681969
data-readers tags/*cljs-data-readers*

0 commit comments

Comments
 (0)