Skip to content

Commit c83bf9c

Browse files
committed
fix wrong argument name
1 parent 2cfe73a commit c83bf9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/cljs/cljs/tools/reader.cljs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -944,13 +944,13 @@
944944
([stream eof-error? eof-value] (read+string stream eof-error? eof-value false))
945945
([stream eof-error? eof-value recursive?]
946946
(let [buf (fn [reader] (str (:buffer @(.-frames stream))))
947-
offset (count (buf reader))
947+
offset (count (buf stream))
948948
o (log-source stream (read stream eof-error? eof-value recursive?))
949-
s (.trim (subs (buf reader) offset))]
949+
s (.trim (subs (buf stream) offset))]
950950
[o s]))
951951
([opts stream]
952952
(let [buf (fn [reader] (str (:buffer @(.-frames stream))))
953-
offset (count (buf reader))
953+
offset (count (buf stream))
954954
o (log-source stream (read opts stream))
955-
s (.trim (subs (buf reader) offset))]
955+
s (.trim (subs (buf stream) offset))]
956956
[o s])))

0 commit comments

Comments
 (0)