Skip to content

Commit 5d9d67b

Browse files
authored
Fix some realmless ArrayBuffer creation
Test: web-platform-tests/wpt#46104. Fixes #1675.
1 parent 2c3000e commit 5d9d67b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

fetch.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7139,8 +7139,9 @@ steps:
71397139
<p>Run <var>action</var>.
71407140

71417141
<p>Whenever one or more bytes are available and <var>stream</var> is not
7142-
<a for=ReadableStream>errored</a>, <a for=ReadableStream>enqueue</a> a {{Uint8Array}} wrapping
7143-
an {{ArrayBuffer}} containing the available bytes into <var>stream</var>.
7142+
<a for=ReadableStream>errored</a>, <a for=ReadableStream>enqueue</a> the result of
7143+
[=ArrayBufferView/create|creating=] a {{Uint8Array}} from the available bytes into
7144+
<var>stream</var>.
71447145

71457146
<p>When running <var>action</var> is done, <a for=ReadableStream>close</a> <var>stream</var>.
71467147
</ol>
@@ -7274,8 +7275,8 @@ algorithm, given an object that includes {{Body}} <var>object</var> and an algor
72747275
<div algorithm>
72757276
<p>The <dfn method for=Body><code>arrayBuffer()</code></dfn> method steps are to return the result
72767277
of running <a for=Body>consume body</a> with <a>this</a> and the following step given a
7277-
<a for=/>byte sequence</a> <var>bytes</var>: return a new {{ArrayBuffer}} whose contents are
7278-
<var>bytes</var>.
7278+
<a for=/>byte sequence</a> <var>bytes</var>: return the result of [=ArrayBuffer/creating=] an
7279+
{{ArrayBuffer}} from <var>bytes</var> in <a>this</a>'s <a>relevant realm</a>.
72797280

72807281
<p class="note">The above method can reject with a {{RangeError}}.
72817282
</div>
@@ -7291,7 +7292,7 @@ and whose {{Blob/type}} attribute is the result of <a for=Body>get the MIME type
72917292

72927293
<div algorithm>
72937294
<p>The <dfn method for=Body><code>formData()</code></dfn> method steps are to return the result of
7294-
running <a for=Body>consume body</a> with <a>this</a> and the following step given a
7295+
running <a for=Body>consume body</a> with <a>this</a> and the following steps given a
72957296
<a for=/>byte sequence</a> <var>bytes</var>:
72967297

72977298
<ol>

0 commit comments

Comments
 (0)