From 2a5da283829d4224576ab84b316321065124f246 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Fri, 3 May 2024 21:46:49 -0700 Subject: [PATCH 1/3] specify realm when creating arraybuffer --- fetch.bs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fetch.bs b/fetch.bs index e35715bcd..6ea9a8f44 100644 --- a/fetch.bs +++ b/fetch.bs @@ -7274,8 +7274,7 @@ algorithm, given an object that includes {{Body}} object and an algor

The arrayBuffer() method steps are to return the result of running consume body with this and the following step given a -byte sequence bytes: return a new {{ArrayBuffer}} whose contents are -bytes. +byte sequence bytes: return the result of [=ArrayBuffer/creating=] an {{ArrayBuffer}} from bytes in this's relevant realm.

The above method can reject with a {{RangeError}}.

@@ -7291,7 +7290,7 @@ and whose {{Blob/type}} attribute is the result of get the MIME type

The formData() method steps are to return the result of -running consume body with this and the following step given a +running consume body with this and the following steps given a byte sequence bytes:

    From 82a8d8df4fbfccbbea7188495464927ce4e2b496 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Fri, 3 May 2024 21:47:18 -0700 Subject: [PATCH 2/3] refer to algorithm for making Uint8Array --- fetch.bs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fetch.bs b/fetch.bs index 6ea9a8f44..2561da851 100644 --- a/fetch.bs +++ b/fetch.bs @@ -7139,8 +7139,7 @@ steps:

    Run action.

    Whenever one or more bytes are available and stream is not - errored, enqueue a {{Uint8Array}} wrapping - an {{ArrayBuffer}} containing the available bytes into stream. + errored, enqueue the result of [=ArrayBufferView/create|creating=] a {{Uint8Array}} from the available bytes into stream.

    When running action is done, close stream.

From b9ef20ab89c2527e3560f55bc97376725e392483 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Tue, 7 May 2024 13:16:55 +0200 Subject: [PATCH 3/3] wrapping --- fetch.bs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fetch.bs b/fetch.bs index 2561da851..88e0ddb3f 100644 --- a/fetch.bs +++ b/fetch.bs @@ -7139,7 +7139,9 @@ steps:

Run action.

Whenever one or more bytes are available and stream is not - errored, enqueue the result of [=ArrayBufferView/create|creating=] a {{Uint8Array}} from the available bytes into stream. + errored, enqueue the result of + [=ArrayBufferView/create|creating=] a {{Uint8Array}} from the available bytes into + stream.

When running action is done, close stream. @@ -7273,7 +7275,8 @@ algorithm, given an object that includes {{Body}} object and an algor

The arrayBuffer() method steps are to return the result of running consume body with this and the following step given a -byte sequence bytes: return the result of [=ArrayBuffer/creating=] an {{ArrayBuffer}} from bytes in this's relevant realm. +byte sequence bytes: return the result of [=ArrayBuffer/creating=] an +{{ArrayBuffer}} from bytes in this's relevant realm.

The above method can reject with a {{RangeError}}.