File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -717,6 +717,7 @@ contributors: Mark S. Miller, Richard Gibson
717
717
<emu-alg>
718
718
1. Perform ? RequireInternalSlot(_view_, [[DataView]]).
719
719
1. Assert: _view_ has a [[ViewedArrayBuffer]] internal slot.
720
+ 1. <ins>If IsImmutableBuffer(_view_.[[ViewedArrayBuffer]]) is *true*, throw a *TypeError* exception.</ins>
720
721
1. Let _getIndex_ be ? ToIndex(_requestIndex_).
721
722
1. If IsBigIntElementType(_type_) is *true*, let _numberValue_ be ? ToBigInt(_value_).
722
723
1. Otherwise, let _numberValue_ be ? ToNumber(_value_).
@@ -725,7 +726,6 @@ contributors: Mark S. Miller, Richard Gibson
725
726
1. Let _viewRecord_ be MakeDataViewWithBufferWitnessRecord(_view_, ~unordered~).
726
727
1. NOTE: Bounds checking is not a synchronizing operation when _view_'s backing buffer is a growable SharedArrayBuffer.
727
728
1. If IsViewOutOfBounds(_viewRecord_) is *true*, throw a *TypeError* exception.
728
- 1. <ins>If IsImmutableBuffer(_view_.[[ViewedArrayBuffer]]) is *true*, throw a *TypeError* exception.</ins>
729
729
1. Let _viewSize_ be GetViewByteLength(_viewRecord_).
730
730
1. Let _elementSize_ be the Element Size value specified in <emu-xref href="#table-the-typedarray-constructors"></emu-xref> for Element Type _type_.
731
731
1. If _getIndex_ + _elementSize_ > _viewSize_, throw a *RangeError* exception.
You can’t perform that action at this time.
0 commit comments