We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1dd81c7 + 9fe3f1f commit c5a96d3Copy full SHA for c5a96d3
spec.emu
@@ -683,9 +683,7 @@ contributors: Mark S. Miller, Richard Gibson
683
1. Let _bounds_ be ? ResolveBounds(_len_, _start_, _end_).
684
1. Let _first_ be _bounds_.[[From]].
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.
+ 1. Let _newLen_ be max(_final_ - _first_, 0).
689
1. NOTE: Side-effects of the above steps may have detached or resized _O_.
690
1. If IsDetachedBuffer(_O_) is *true*, throw a *TypeError* exception.
691
1. Let _fromBuf_ be _O_.[[ArrayBufferData]].
0 commit comments