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
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,16 @@ Should trying to write data in an immutable ArrayBuffer via a TypedArray element
91
91
</dt>
92
92
<dt>
93
93
94
+
Should the index properties of a TypedArray backed by an immutable ArrayBuffer be configurable and writable?
95
+
96
+
</dt>
97
+
<dd>
98
+
99
+
No, TypedArray index properties should continue to track the state of the underlying buffer without individual bookkeeping.
100
+
101
+
</dd>
102
+
<dt>
103
+
94
104
Should TypedArray write methods (`copyWithin`, `fill`, `reverse`, `set`, etc.) throw when their backing ArrayBuffer is immutable but the targeted range is zero-length? If so, how early or late in the algorithm? The methods currently inspect arguments after ValidateTypedArray.
): 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