diff options
author | Brad Dunbar <dunbarb2@gmail.com> | 2020-02-07 18:51:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 18:51:01 -0500 |
commit | d7edf393b6f1178bc91ec9113412f23f5dbd61e1 (patch) | |
tree | d8c9edea018807e71bbfd4e3584a556f402d7daa /cli/compilers/wasm.rs | |
parent | 724e39f13f2f144703ce00e156cacfc653d8e209 (diff) |
toAsyncIterable: Remove unnecessary EOF check (#3914)
In denoland/deno#2335 a conditional was added to make sure
toAsyncIterator didn't skip chunks because the reader returned data and
EOF in a single call, fixing #2330.
Later, in denoland/deno#2591, the `Reader` interface changed to
`Promise<number | EOF>`. Since the reader no longer returns data and EOF
in a single call, this conditional is not necessary. We can just return
`{ done: true }` when we get `EOF`.
Co-authored-by: Arun Srinivasan <rulfzid@gmail.com>
Co-authored-by: Arun Srinivasan <rulfzid@gmail.com>
Diffstat (limited to 'cli/compilers/wasm.rs')
0 files changed, 0 insertions, 0 deletions