Skip to content

Commit

Permalink
"_maxByteLength_ is present and not ~empty~": expand the elision
Browse files Browse the repository at this point in the history
This one is debatable.
I mostly did it for my convenience,
but I think PR tc39#2877 also preferred some similar expansions.
  • Loading branch information
jmdyck authored and syg committed Aug 23, 2023
1 parent ea35b27 commit 72b8891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -42609,7 +42609,7 @@ <h1>
</dl>
<emu-alg>
1. Let _slots_ be « [[ArrayBufferData]], [[ArrayBufferByteLength]], [[ArrayBufferDetachKey]] ».
1. If _maxByteLength_ is present and not ~empty~, let _allocatingResizableBuffer_ be *true*; otherwise let _allocatingResizableBuffer_ be *false*.
1. If _maxByteLength_ is present and _maxByteLength_ is not ~empty~, let _allocatingResizableBuffer_ be *true*; otherwise let _allocatingResizableBuffer_ be *false*.
1. If _allocatingResizableBuffer_ is *true*, then
1. If _byteLength_ > _maxByteLength_, throw a *RangeError* exception.
1. Append [[ArrayBufferMaxByteLength]] to _slots_.
Expand Down Expand Up @@ -43227,7 +43227,7 @@ <h1>
</dl>
<emu-alg>
1. Let _slots_ be « [[ArrayBufferData]] ».
1. If _maxByteLength_ is present and not ~empty~, let _allocatingGrowableBuffer_ be *true*; otherwise let _allocatingGrowableBuffer_ be *false*.
1. If _maxByteLength_ is present and _maxByteLength_ is not ~empty~, let _allocatingGrowableBuffer_ be *true*; otherwise let _allocatingGrowableBuffer_ be *false*.
1. If _allocatingGrowableBuffer_ is *true*, then
1. If _byteLength_ > _maxByteLength_, throw a *RangeError* exception.
1. Append [[ArrayBufferByteLengthData]] and [[ArrayBufferMaxByteLength]] to _slots_.
Expand Down

0 comments on commit 72b8891

Please sign in to comment.