summaryrefslogtreecommitdiff
path: root/cli/js/web/fetch.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-22 21:30:45 +0200
committerGitHub <noreply@github.com>2020-04-22 21:30:45 +0200
commit68d287eed5dcdc7b84a317fa90c4c9131389c0b8 (patch)
tree2d6c623858ef89504f26a49ffd169e1d2b2e8453 /cli/js/web/fetch.ts
parentda6819a14c54d1a2221b37f00b3302eb2d50660b (diff)
BREAKING CHANGE: rename Deno.toAsyncIterator() to Deno.iter() (#4848)
* rename Deno.toAsyncIterator() to Deno.iter() * adds sync version Deno.iterSync() * adds optional second argument for buffer size
Diffstat (limited to 'cli/js/web/fetch.ts')
-rw-r--r--cli/js/web/fetch.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/web/fetch.ts b/cli/js/web/fetch.ts
index 2c16d5fb0..abb5f2aa2 100644
--- a/cli/js/web/fetch.ts
+++ b/cli/js/web/fetch.ts
@@ -248,7 +248,7 @@ class Body implements domTypes.Body, ReadableStream<Uint8Array>, io.ReadCloser {
}
[Symbol.asyncIterator](): AsyncIterableIterator<Uint8Array> {
- return io.toAsyncIterator(this);
+ return io.iter(this);
}
get bodyUsed(): boolean {