diff --git a/index.bs b/index.bs index 5e505479..b86a151e 100644 --- a/index.bs +++ b/index.bs @@ -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: @@ -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|. @@ -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|. @@ -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]] − |startingOffset|. - 1. For |i| in [=the range=] |startingOffset| to |startingOffset| + |bytes|'s [=byte - sequence/length=] − 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).