summaryrefslogtreecommitdiff
path: root/ext/fetch/22_body.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fetch/22_body.js')
-rw-r--r--ext/fetch/22_body.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/fetch/22_body.js b/ext/fetch/22_body.js
index d1246a9f2..bea1abce2 100644
--- a/ext/fetch/22_body.js
+++ b/ext/fetch/22_body.js
@@ -42,6 +42,8 @@
JSONParse,
ObjectDefineProperties,
ObjectPrototypeIsPrototypeOf,
+ // TODO(lucacasonato): add SharedArrayBuffer to primordials
+ // SharedArrayBufferPrototype
TypedArrayPrototypeSlice,
TypeError,
Uint8Array,
@@ -185,7 +187,7 @@
* @returns {InnerBody}
*/
clone() {
- const [out1, out2] = this.stream.tee();
+ const { 0: out1, 1: out2 } = this.stream.tee();
this.streamOrStatic = out1;
const second = new InnerBody(out2);
second.source = core.deserialize(core.serialize(this.source));
@@ -447,6 +449,7 @@
if (typeof V === "object") {
if (
ObjectPrototypeIsPrototypeOf(ArrayBufferPrototype, V) ||
+ // deno-lint-ignore prefer-primordials
ObjectPrototypeIsPrototypeOf(SharedArrayBuffer.prototype, V)
) {
return webidl.converters["ArrayBuffer"](V, opts);