diff --git a/spec.html b/spec.html index 01a536baa4..44aebfee39 100644 --- a/spec.html +++ b/spec.html @@ -14708,7 +14708,20 @@

TypedArray Exotic Objects

A TypedArray is an exotic object that performs special handling of integer index property keys.

TypedArrays have the same internal slots as ordinary objects and additionally [[ViewedArrayBuffer]], [[ArrayLength]], [[ByteOffset]], [[ContentType]], and [[TypedArrayName]] internal slots.

-

An object is a TypedArray if its [[GetOwnProperty]], [[HasProperty]], [[DefineOwnProperty]], [[Get]], [[Set]], [[Delete]], and [[OwnPropertyKeys]] internal methods use the definitions in this section, and its other essential internal methods use the definitions found in . These methods are installed by TypedArrayCreate.

+

An object is a TypedArray if its [[PreventExtensions]], [[GetOwnProperty]], [[HasProperty]], [[DefineOwnProperty]], [[Get]], [[Set]], [[Delete]], and [[OwnPropertyKeys]], internal methods use the definitions in this section, and its other essential internal methods use the definitions found in . These methods are installed by TypedArrayCreate.

+ + +

[[PreventExtensions]] ( ): a normal completion containing a Boolean

+
+
for
+
a TypedArray _O_
+
+ + 1. NOTE: The extensibility-related invariants specified in do not allow this method to return *true* when _O_ can gain (or lose and then regain) properties, which might occur for properties with integer index names when its underlying buffer is resized. + 1. If IsTypedArrayFixedLength(_O_) is *false*, return *false*. + 1. Return OrdinaryPreventExtensions(_O_). + +

@@ -14936,6 +14949,7 @@

1. Let _internalSlotsList_ be « [[Prototype]], [[Extensible]], [[ViewedArrayBuffer]], [[TypedArrayName]], [[ContentType]], [[ByteLength]], [[ByteOffset]], [[ArrayLength]] ». 1. Let _A_ be MakeBasicObject(_internalSlotsList_). + 1. Set _A_.[[PreventExtensions]] as specified in . 1. Set _A_.[[GetOwnProperty]] as specified in . 1. Set _A_.[[HasProperty]] as specified in . 1. Set _A_.[[DefineOwnProperty]] as specified in . @@ -15015,6 +15029,22 @@

+ +

+ IsTypedArrayFixedLength ( + _O_: a TypedArray, + ): a Boolean +

+
+
+ + 1. If _O_.[[ArrayLength]] is ~auto~, return *false*. + 1. Let _buffer_ be _O_.[[ViewedArrayBuffer]]. + 1. If IsFixedLengthArrayBuffer(_buffer_) is *false* and IsSharedArrayBuffer(_buffer_) is *false*, return *false*. + 1. Return *true*. + +
+

IsValidIntegerIndex (