From 5c2e499c3a70ec58b7f5adab3a7801d601f9b2e1 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 21 Sep 2020 22:07:41 +0200 Subject: fix: Response.arrayBuffer() doesn't return promise (#7618) --- op_crates/fetch/26_fetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op_crates') 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)); } } -- cgit v1.2.3