Hide readAll from js for tests passing

This commit is contained in:
data-man 2018-05-25 08:48:09 +03:00
commit cc9e94cd96

View file

@ -86,6 +86,7 @@ proc readData*(s: Stream, buffer: pointer, bufLen: int): int =
## low level proc that reads data into an untyped `buffer` of `bufLen` size. ## low level proc that reads data into an untyped `buffer` of `bufLen` size.
result = s.readDataImpl(s, buffer, bufLen) result = s.readDataImpl(s, buffer, bufLen)
when not defined(js):
proc readAll*(s: Stream): string = proc readAll*(s: Stream): string =
## Reads all available data. ## Reads all available data.
const bufferSize = 1024 const bufferSize = 1024