summaryrefslogtreecommitdiff
path: root/op_crates/fetch/11_streams.js
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-01-18 10:40:39 +1100
committerGitHub <noreply@github.com>2021-01-18 10:40:39 +1100
commit2077864a8deca240fbbd43758e30977cc881e110 (patch)
tree67e93e98597df9c6bc9001900071be963ede49c3 /op_crates/fetch/11_streams.js
parent81d73f2987c65463c0f2653f31d3d29d8db1986c (diff)
fix(op_crate/fetch): add back ReadableStream.getIterator and deprecate (#9146)
Diffstat (limited to 'op_crates/fetch/11_streams.js')
-rw-r--r--op_crates/fetch/11_streams.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/op_crates/fetch/11_streams.js b/op_crates/fetch/11_streams.js
index 6031fa3ef..827f8c232 100644
--- a/op_crates/fetch/11_streams.js
+++ b/op_crates/fetch/11_streams.js
@@ -1152,7 +1152,6 @@
// 3.5.6.8 Otherwise, support BYOB Reader
/** @type {Deferred<void>} */
const closedPromise = reader[_closedPromise];
- console.log("closedPromise rejected");
closedPromise.reject(e);
setPromiseIsHandledToTrue(closedPromise.promise);
}
@@ -3098,6 +3097,15 @@
}
/**
+ * @deprecated TODO(@kitsonk): Remove in Deno 1.8
+ * @param {ReadableStreamIteratorOptions=} options
+ * @returns {AsyncIterableIterator<R>}
+ */
+ getIterator(options = {}) {
+ return this[Symbol.asyncIterator](options);
+ }
+
+ /**
* @param {ReadableStreamGetReaderOptions=} options
* @returns {ReadableStreamDefaultReader<R>}
*/