Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3228,10 +3228,10 @@ the same operation or constructor.
and "required" otherwise.
1. [=set/Append=] the [=tuple=] (|X|, |types|, |optionalityValues|) to |S|.
1. If |X| is declared to be [=variadic=], then:
1. [=list/For each=] |i| in [=the range=] |n| to |max| − 1, inclusive:
1. [=list/For each=] |i| in [=the exclusive range|the range=] |n| to |max|, exclusive:
1. Let |t| be a [=type list=].
1. Let |o| be an [=optionality list=].
1. [=list/For each=] |j| in [=the range=] 0 to |n| − 1, inclusive:
1. [=list/For each=] |j| in [=the exclusive range|the range=] 0 to |n|, exclusive:
1. [=list/Append=] |types|[|j|] to |t|.
1. [=list/Append=] |optionalityValues|[|j|] to |o|.
1. [=list/For each=] |j| in [=the range=] |n| to |i|, inclusive:
Expand All @@ -3245,7 +3245,7 @@ the same operation or constructor.
a final, variadic argument), then [=iteration/break=].
1. Let |t| be a [=type list=].
1. Let |o| be an [=optionality list=].
1. [=list/For each=] |j| in [=the range=] 0 to |i| − 1, inclusive:
1. [=list/For each=] |j| in [=the exclusive range|the range=] 0 to |i|, exclusive:
1. [=list/Append=] |types|[|j|] to |t|.
1. [=list/Append=] |optionalityValues|[|j|] to |o|.
1. [=set/Append=] the [=tuple=] (|X|, |t|, |o|) to |S|.
Expand Down Expand Up @@ -9328,8 +9328,8 @@ a reference to the same object that the IDL value represents.
1. If [$IsDetachedBuffer$](|jsArrayBuffer|) is true, then return the empty
[=byte sequence=].
1. Let |bytes| be a new [=byte sequence=] of [=byte sequence/length=] equal to |length|.
1. For |i| in [=the range=] |offset| to |offset| + |length| − 1, inclusive, set
|bytes|[|i| − |offset|] to [$GetValueFromBuffer$](|jsArrayBuffer|, |i|, Uint8,
1. For |i| in [=the exclusive range|the range=] |offset| to |offset| + |length|, exclusive,
set |bytes|[|i| − |offset|] to [$GetValueFromBuffer$](|jsArrayBuffer|, |i|, Uint8,
true, Unordered).
1. Return |bytes|.
</div>
Expand Down Expand Up @@ -9370,9 +9370,10 @@ a reference to the same object that the IDL value represents.
|arrayBuffer| to a JavaScript value.
1. Assert: |bytes|'s [=byte sequence/length=] ≤ |jsArrayBuffer|.\[[ArrayBufferByteLength]]
&minus; |startingOffset|.
1. For |i| in [=the range=] |startingOffset| to |startingOffset| + |bytes|'s [=byte
sequence/length=] &minus; 1, inclusive, perform [$SetValueInBuffer$](|jsArrayBuffer|,
|i|, Uint8, |bytes|[|i| - |startingOffset|], true, Unordered).
1. For |i| in [=the exclusive range|the range=] |startingOffset| to |startingOffset| +
|bytes|'s [=byte sequence/length=], exclusive, perform
[$SetValueInBuffer$](|jsArrayBuffer|, |i|, Uint8, |bytes|[|i| - |startingOffset|], true,
Unordered).
</div>

<div algorithm="ArrayBufferView/write">
Expand Down
Loading