You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Assert: _O_ has a [[ViewedArrayBuffer]] internal slot.
354
-
1. <ins>If _use_ is ~write~ and IsImmutableBuffer(_O_.[[ViewedArrayBuffer]]) is *true*, throw a *TypeError* exception.</ins>
354
+
1. <ins>If _accessMode_ is ~write~ and IsImmutableBuffer(_O_.[[ViewedArrayBuffer]]) is *true*, throw a *TypeError* exception.</ins>
355
355
1. Let _taRecord_ be MakeTypedArrayWithBufferWitnessRecord(_O_, _order_).
356
356
1. If IsTypedArrayOutOfBounds(_taRecord_) is *true*, throw a *TypeError* exception.
357
357
1. Return _taRecord_.
@@ -375,13 +375,14 @@ contributors: Mark S. Miller, Richard Gibson
375
375
AllocateArrayBuffer (
376
376
_constructor_: a constructor,
377
377
_byteLength_: a non-negative integer,
378
-
optional _maxByteLength_: a non-negative integer, or either ~empty~ or ~immutable~,
378
+
optional _maxByteLength_: a non-negative integer, <del>or ~empty~</del> <ins>or either ~empty~ or ~immutable~</ins>,
379
379
): either a normal completion containing an ArrayBuffer or a throw completion
380
380
</h1>
381
381
<dl class="header">
382
382
<dt>description</dt>
383
383
<dd>It is used to create an ArrayBuffer.</dd>
384
384
</dl>
385
+
<emu-note type="editor">The current name and domain of parameter _maxByteLength_ is preserved for the benefit of diff readability, but both may be subject to change before acceptance into ECMA-262.</emu-note>
385
386
<emu-alg>
386
387
1. Let _slots_ be « [[ArrayBufferData]], [[ArrayBufferByteLength]], [[ArrayBufferDetachKey]] ».
387
388
1. If _maxByteLength_ is present and _maxByteLength_ is <del>not ~empty~</del> <ins>an integer</ins>, let _allocatingResizableBuffer_ be *true*; otherwise let _allocatingResizableBuffer_ be *false*.
@@ -744,14 +745,14 @@ contributors: Mark S. Miller, Richard Gibson
744
745
ValidateIntegerTypedArray (
745
746
_typedArray_: an ECMAScript language value,
746
747
_waitable_: a Boolean,
747
-
<ins>optional _use_: ~read~ or ~write~,</ins>
748
+
<ins>optional _accessMode_: ~read~ or ~write~,</ins>
748
749
): either a normal completion containing a TypedArray With Buffer Witness Record, or a throw completion
749
750
</h1>
750
751
<dl class="header">
751
752
</dl>
752
753
<emu-alg>
753
-
1. <ins>If _use_ is not present, set _use_ to ~read~.</ins>
754
-
1. Let _taRecord_ be ? ValidateTypedArray(_typedArray_, ~unordered~<ins>, _use_</ins>).
754
+
1. <ins>If _accessMode_ is not present, set _accessMode_ to ~read~.</ins>
755
+
1. Let _taRecord_ be ? ValidateTypedArray(_typedArray_, ~unordered~<ins>, _accessMode_</ins>).
755
756
1. NOTE: Bounds checking is not a synchronizing operation when _typedArray_'s backing buffer is a growable SharedArrayBuffer.
756
757
1. If _waitable_ is *true*, then
757
758
1. If _typedArray_.[[TypedArrayName]] is neither *"Int32Array"* nor *"BigInt64Array"*, throw a *TypeError* exception.
@@ -768,15 +769,15 @@ contributors: Mark S. Miller, Richard Gibson
768
769
_typedArray_: an ECMAScript language value,
769
770
_requestIndex_: an ECMAScript language value,
770
771
optional _waitable_: a Boolean,
771
-
<ins>optional _use_: ~read~ or ~write~,</ins>
772
+
<ins>optional _accessMode_: ~read~ or ~write~,</ins>
772
773
): either a normal completion containing an integer or a throw completion
773
774
</h1>
774
775
<dl class="header">
775
776
</dl>
776
777
<emu-alg>
777
778
1. If _waitable_ is not present, set _waitable_ to *false*.
778
-
1. <ins>If _use_ is not present, set _use_ to ~read~.</ins>
779
-
1. Let _taRecord_ be ? ValidateIntegerTypedArray(_typedArray_, _waitable_<ins>, _use_</ins>).
779
+
1. <ins>If _accessMode_ is not present, set _accessMode_ to ~read~.</ins>
780
+
1. Let _taRecord_ be ? ValidateIntegerTypedArray(_typedArray_, _waitable_<ins>, _accessMode_</ins>).
0 commit comments