Hide readAll from js for tests passing
This commit is contained in:
parent
8149c07458
commit
cc9e94cd96
1 changed files with 14 additions and 13 deletions
|
|
@ -86,7 +86,8 @@ 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)
|
||||||
|
|
||||||
proc readAll*(s: Stream): string =
|
when not defined(js):
|
||||||
|
proc readAll*(s: Stream): string =
|
||||||
## Reads all available data.
|
## Reads all available data.
|
||||||
const bufferSize = 1024
|
const bufferSize = 1024
|
||||||
var buffer {.noinit.}: array[bufferSize, char]
|
var buffer {.noinit.}: array[bufferSize, char]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue