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
): either a normal completion containing a Boolean or a throw completion
52
+
</h1>
53
+
<dl class="header">
54
+
<dt>for</dt>
55
+
<dd>a TypedArray _O_</dd>
56
+
</dl>
57
+
<emu-alg>
58
+
1. If _P_ is a String, then
59
+
1. Let _numericIndex_ be CanonicalNumericIndexString(_P_).
60
+
1. If _numericIndex_ is not *undefined*, then
61
+
1. If IsValidIntegerIndex(_O_, _numericIndex_) is *false*, return *false*.
62
+
1. <ins>Let _mutable_ be *true*.</ins>
63
+
1. <ins>If IsImmutableBuffer(_O_.[[ViewedArrayBuffer]]) is *true*, set _mutable_ to *false*.</ins>
64
+
1. If _Desc_ has a [[Configurable]] field and _Desc_.[[Configurable]] is <del>*false*</del> <ins>not _mutable_</ins>, return *false*.
65
+
1. If _Desc_ has an [[Enumerable]] field and _Desc_.[[Enumerable]] is *false*, return *false*.
66
+
1. If IsAccessorDescriptor(_Desc_) is *true*, return *false*.
67
+
1. If _Desc_ has a [[Writable]] field and _Desc_.[[Writable]] is <del>*false*</del> <ins>not _mutable_</ins>, return *false*.
68
+
1. <ins>If _Desc_ has a [[Value]] field and _mutable_ is *false* and SameValue(_Desc_.[[Value]], TypedArrayGetElement(_O_, _numericIndex_)) is *false*, return *false*.</ins>
69
+
1. If _Desc_ has a [[Value]] field <ins>and _mutable_ is *true*</ins>, perform ? TypedArraySetElement(_O_, _numericIndex_, _Desc_.[[Value]]).
0 commit comments