@@ -342,16 +342,16 @@ contributors: Mark S. Miller, Richard Gibson
342
342
ValidateTypedArray (
343
343
_O_: an ECMAScript language value,
344
344
_order_: ~seq-cst~ or ~unordered~,
345
- <ins>optional _use_ : ~read~ or ~write~,</ins>
345
+ <ins>optional _accessMode_ : ~read~ or ~write~,</ins>
346
346
): either a normal completion containing a TypedArray With Buffer Witness Record or a throw completion
347
347
</h1>
348
348
<dl class="header">
349
349
</dl>
350
350
<emu-alg>
351
- 1. <ins>If _use_ is not present, set _use_ to ~read~.</ins>
351
+ 1. <ins>If _accessMode_ is not present, set _accessMode_ to ~read~.</ins>
352
352
1. Perform ? RequireInternalSlot(_O_, [[TypedArrayName]]).
353
353
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_.
@@ -744,14 +744,14 @@ contributors: Mark S. Miller, Richard Gibson
744
744
ValidateIntegerTypedArray (
745
745
_typedArray_: an ECMAScript language value,
746
746
_waitable_: a Boolean,
747
- <ins>optional _use_ : ~read~ or ~write~,</ins>
747
+ <ins>optional _accessMode_ : ~read~ or ~write~,</ins>
748
748
): either a normal completion containing a TypedArray With Buffer Witness Record, or a throw completion
749
749
</h1>
750
750
<dl class="header">
751
751
</dl>
752
752
<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>).
753
+ 1. <ins>If _accessMode_ is not present, set _accessMode_ to ~read~.</ins>
754
+ 1. Let _taRecord_ be ? ValidateTypedArray(_typedArray_, ~unordered~<ins>, _accessMode_ </ins>).
755
755
1. NOTE: Bounds checking is not a synchronizing operation when _typedArray_'s backing buffer is a growable SharedArrayBuffer.
756
756
1. If _waitable_ is *true*, then
757
757
1. If _typedArray_.[[TypedArrayName]] is neither *"Int32Array"* nor *"BigInt64Array"*, throw a *TypeError* exception.
@@ -768,15 +768,15 @@ contributors: Mark S. Miller, Richard Gibson
768
768
_typedArray_: an ECMAScript language value,
769
769
_requestIndex_: an ECMAScript language value,
770
770
optional _waitable_: a Boolean,
771
- <ins>optional _use_ : ~read~ or ~write~,</ins>
771
+ <ins>optional _accessMode_ : ~read~ or ~write~,</ins>
772
772
): either a normal completion containing an integer or a throw completion
773
773
</h1>
774
774
<dl class="header">
775
775
</dl>
776
776
<emu-alg>
777
777
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>).
778
+ 1. <ins>If _accessMode_ is not present, set _accessMode_ to ~read~.</ins>
779
+ 1. Let _taRecord_ be ? ValidateIntegerTypedArray(_typedArray_, _waitable_<ins>, _accessMode_ </ins>).
780
780
1. Return ? ValidateAtomicAccess(_taRecord_, _requestIndex_).
781
781
</emu-alg>
782
782
</emu-clause>
0 commit comments