Skip to content

Commit e2cacdb

Browse files
committed
Editorial: Rename _use_ parameters to _accessMode_
Ref tc39#30
1 parent 4f18004 commit e2cacdb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spec.emu

+9-9
Original file line numberDiff line numberDiff line change
@@ -342,16 +342,16 @@ contributors: Mark S. Miller, Richard Gibson
342342
ValidateTypedArray (
343343
_O_: an ECMAScript language value,
344344
_order_: ~seq-cst~ or ~unordered~,
345-
<ins>optional _use_: ~read~ or ~write~,</ins>
345+
<ins>optional _accessMode_: ~read~ or ~write~,</ins>
346346
): either a normal completion containing a TypedArray With Buffer Witness Record or a throw completion
347347
</h1>
348348
<dl class="header">
349349
</dl>
350350
<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>
352352
1. Perform ? RequireInternalSlot(_O_, [[TypedArrayName]]).
353353
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>
355355
1. Let _taRecord_ be MakeTypedArrayWithBufferWitnessRecord(_O_, _order_).
356356
1. If IsTypedArrayOutOfBounds(_taRecord_) is *true*, throw a *TypeError* exception.
357357
1. Return _taRecord_.
@@ -744,14 +744,14 @@ contributors: Mark S. Miller, Richard Gibson
744744
ValidateIntegerTypedArray (
745745
_typedArray_: an ECMAScript language value,
746746
_waitable_: a Boolean,
747-
<ins>optional _use_: ~read~ or ~write~,</ins>
747+
<ins>optional _accessMode_: ~read~ or ~write~,</ins>
748748
): either a normal completion containing a TypedArray With Buffer Witness Record, or a throw completion
749749
</h1>
750750
<dl class="header">
751751
</dl>
752752
<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>).
755755
1. NOTE: Bounds checking is not a synchronizing operation when _typedArray_'s backing buffer is a growable SharedArrayBuffer.
756756
1. If _waitable_ is *true*, then
757757
1. If _typedArray_.[[TypedArrayName]] is neither *"Int32Array"* nor *"BigInt64Array"*, throw a *TypeError* exception.
@@ -768,15 +768,15 @@ contributors: Mark S. Miller, Richard Gibson
768768
_typedArray_: an ECMAScript language value,
769769
_requestIndex_: an ECMAScript language value,
770770
optional _waitable_: a Boolean,
771-
<ins>optional _use_: ~read~ or ~write~,</ins>
771+
<ins>optional _accessMode_: ~read~ or ~write~,</ins>
772772
): either a normal completion containing an integer or a throw completion
773773
</h1>
774774
<dl class="header">
775775
</dl>
776776
<emu-alg>
777777
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>).
780780
1. Return ? ValidateAtomicAccess(_taRecord_, _requestIndex_).
781781
</emu-alg>
782782
</emu-clause>

0 commit comments

Comments
 (0)