summaryrefslogtreecommitdiff
path: root/op_crates/fetch/26_fetch.js
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2020-09-21 22:07:41 +0200
committerGitHub <noreply@github.com>2020-09-21 22:07:41 +0200
commit5c2e499c3a70ec58b7f5adab3a7801d601f9b2e1 (patch)
tree884ef779ec49df06eff22df287023e331f606c87 /op_crates/fetch/26_fetch.js
parent92edc364426ddb4c80292ebe7e702c02f9344c5b (diff)
fix: Response.arrayBuffer() doesn't return promise (#7618)
Diffstat (limited to 'op_crates/fetch/26_fetch.js')
-rw-r--r--op_crates/fetch/26_fetch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/op_crates/fetch/26_fetch.js b/op_crates/fetch/26_fetch.js
index 4b31110d6..9916a4f82 100644
--- a/op_crates/fetch/26_fetch.js
+++ b/op_crates/fetch/26_fetch.js
@@ -869,7 +869,7 @@
if (this._bodySource instanceof ReadableStream) {
return bufferFromStream(this._bodySource.getReader(), this.#size);
}
- return bodyToArrayBuffer(this._bodySource);
+ return Promise.resolve(bodyToArrayBuffer(this._bodySource));
}
}