File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -683,9 +683,7 @@ contributors: Mark S. Miller, Richard Gibson
683
683
1. Let _bounds_ be ? ResolveBounds(_len_, _start_, _end_).
684
684
1. Let _first_ be _bounds_.[[From]].
685
685
1. Let _final_ be _bounds_.[[To]].
686
- 1. Let _newLen_ be _final_ - _first_.
687
- 1. NOTE: This differs from <emu-xref href="#sec-arraybuffer.prototype.slice" title></emu-xref>, which instead clamps _newLen_ to be non-negative.
688
- 1. If _newLen_ < 0, throw a *RangeError* exception.
686
+ 1. Let _newLen_ be max(_final_ - _first_, 0).
689
687
1. NOTE: Side-effects of the above steps may have detached or resized _O_.
690
688
1. If IsDetachedBuffer(_O_) is *true*, throw a *TypeError* exception.
691
689
1. Let _fromBuf_ be _O_.[[ArrayBufferData]].
You can’t perform that action at this time.
0 commit comments