diff --git a/spec.html b/spec.html
index b650e445aa..c0ac4ad104 100644
--- a/spec.html
+++ b/spec.html
@@ -4339,13 +4339,12 @@
Data Blocks
CreateByteDataBlock (
- _size_: an integer,
+ _size_: a non-negative integer,
)
- 1. Assert: _size_ ≥ 0.
1. Let _db_ be a new Data Block value consisting of _size_ bytes. If it is impossible to create such a Data Block, throw a *RangeError* exception.
1. Set all of the bytes of _db_ to 0.
1. Return _db_.
@@ -4361,7 +4360,6 @@
- 1. Assert: _size_ ≥ 0.
1. Let _db_ be a new Shared Data Block value consisting of _size_ bytes. If it is impossible to create such a Shared Data Block, throw a *RangeError* exception.
1. Let _execution_ be the [[CandidateExecution]] field of the surrounding agent's Agent Record.
1. Let _eventList_ be the [[EventList]] field of the element in _execution_.[[EventsRecords]] whose [[AgentSignifier]] is AgentSignifier().
@@ -4375,9 +4373,9 @@
CopyDataBlockBytes (
- _toBlock_: unknown,
+ _toBlock_: a Data Block or a Shared Data Block,
_toIndex_: a non-negative integer,
- _fromBlock_: unknown,
+ _fromBlock_: a Data Block or a Shared Data Block,
_fromIndex_: a non-negative integer,
_count_: a non-negative integer,
)
@@ -4385,7 +4383,7 @@
- 1. Assert: _fromBlock_ and _toBlock_ are distinct Data Block or Shared Data Block values.
+ 1. Assert: _fromBlock_ and _toBlock_ are distinct values.
1. Let _fromSize_ be the number of bytes in _fromBlock_.
1. Assert: _fromIndex_ + _count_ ≤ _fromSize_.
1. Let _toSize_ be the number of bytes in _toBlock_.
@@ -6250,9 +6248,9 @@
Construct (
- _F_: a function object,
+ _F_: a constructor,
optional _argumentsList_: unknown,
- optional _newTarget_: unknown,
+ optional _newTarget_: a constructor,
)
+ 1. Assert: _S_ is *true*.
1. Assert: _envRec_ has a binding for _N_.
1. If the binding for _N_ is an indirect binding, then
1. Let _M_ and _N2_ be the indirection values provided when this binding for _N_ was created.
@@ -11265,7 +11261,7 @@
SetRealmGlobalObject (
_realmRec_: unknown,
- _globalObj_: unknown,
+ _globalObj_: an Object or *undefined*,
_thisValue_: unknown,
)
@@ -11620,7 +11616,6 @@
The default implementation of HostMakeJobCallback performs the following steps when called:
- 1. Assert: IsCallable(_callback_) is *true*.
1. Return the JobCallback Record { [[Callback]]: _callback_, [[HostDefined]]: ~empty~ }.
ECMAScript hosts that are not web browsers must use the default implementation of HostMakeJobCallback.
@@ -12091,13 +12086,12 @@
OrdinarySetPrototypeOf (
_O_: an Object,
- _V_: an ECMAScript language value,
+ _V_: an Object or *null*,
)
- 1. Assert: Either Type(_V_) is Object or Type(_V_) is Null.
1. Let _current_ be _O_.[[Prototype]].
1. If SameValue(_V_, _current_) is *true*, return *true*.
1. Let _extensible_ be _O_.[[Extensible]].
@@ -12576,7 +12570,7 @@
GetPrototypeFromConstructor (
- _constructor_: unknown,
+ _constructor_: a function object,
_intrinsicDefaultProto_: a String,
)
@@ -12586,7 +12580,6 @@
1. Assert: _intrinsicDefaultProto_ is this specification's name of an intrinsic object. The corresponding object must be an intrinsic that is intended to be used as the [[Prototype]] value of an object.
- 1. Assert: IsCallable(_constructor_) is *true*.
1. Let _proto_ be ? Get(_constructor_, *"prototype"*).
1. If Type(_proto_) is not Object, then
1. Let _realm_ be ? GetFunctionRealm(_constructor_).
@@ -14615,13 +14608,12 @@
SetImmutablePrototype (
_O_: unknown,
- _V_: unknown,
+ _V_: an Object or *null*,
)
- 1. Assert: Either Type(_V_) is Object or Type(_V_) is Null.
1. Let _current_ be ? _O_.[[GetPrototypeOf]]().
1. If SameValue(_V_, _current_) is *true*, return *true*.
1. Return *false*.
@@ -34465,7 +34457,7 @@
RegExpInitialize (
- _obj_: an ECMAScript language value,
+ _obj_: an Object,
_pattern_: an ECMAScript language value,
_flags_: an ECMAScript language value,
)
@@ -39018,7 +39010,6 @@
It creates a new ArrayBuffer whose data is a copy of _srcBuffer_'s data over the range starting at _srcByteOffset_ and continuing for _srcLength_ bytes.
- 1. Assert: IsConstructor(_cloneConstructor_) is *true*.
1. Let _targetBuffer_ be ? AllocateArrayBuffer(_cloneConstructor_, _srcLength_).
1. If IsDetachedBuffer(_srcBuffer_) is *true*, throw a *TypeError* exception.
1. Let _srcBlock_ be _srcBuffer_.[[ArrayBufferData]].
@@ -42153,13 +42144,12 @@ Promise.all ( _iterable_ )
GetPromiseResolve (
- _promiseConstructor_: unknown,
+ _promiseConstructor_: a constructor,
)
- 1. Assert: IsConstructor(_promiseConstructor_) is *true*.
1. Let _promiseResolve_ be ? Get(_promiseConstructor_, *"resolve"*).
1. If IsCallable(_promiseResolve_) is *false*, throw a *TypeError* exception.
1. Return _promiseResolve_.
@@ -42170,16 +42160,14 @@
PerformPromiseAll (
_iteratorRecord_: unknown,
- _constructor_: unknown,
+ _constructor_: a constructor,
_resultCapability_: a PromiseCapability Record,
- _promiseResolve_: unknown,
+ _promiseResolve_: a function object,
)
- 1. Assert: IsConstructor(_constructor_) is *true*.
- 1. Assert: IsCallable(_promiseResolve_) is *true*.
1. Let _values_ be a new empty List.
1. Let _remainingElementsCount_ be the Record { [[Value]]: 1 }.
1. Let _index_ be 0.
@@ -42260,16 +42248,14 @@ Promise.allSettled ( _iterable_ )
PerformPromiseAllSettled (
_iteratorRecord_: unknown,
- _constructor_: unknown,
+ _constructor_: a constructor,
_resultCapability_: a PromiseCapability Record,
- _promiseResolve_: unknown,
+ _promiseResolve_: a function object,
)
- 1. Assert: ! IsConstructor(_constructor_) is *true*.
- 1. Assert: IsCallable(_promiseResolve_) is *true*.
1. Let _values_ be a new empty List.
1. Let _remainingElementsCount_ be the Record { [[Value]]: 1 }.
1. Let _index_ be 0.
@@ -42389,16 +42375,14 @@ Promise.any ( _iterable_ )
PerformPromiseAny (
_iteratorRecord_: unknown,
- _constructor_: unknown,
+ _constructor_: a constructor,
_resultCapability_: a PromiseCapability Record,
- _promiseResolve_: unknown,
+ _promiseResolve_: a function object,
)
- 1. Assert: ! IsConstructor(_constructor_) is *true*.
- 1. Assert: ! IsCallable(_promiseResolve_) is *true*.
1. Let _errors_ be a new empty List.
1. Let _remainingElementsCount_ be the Record { [[Value]]: 1 }.
1. Let _index_ be 0.
@@ -42490,16 +42474,14 @@ Promise.race ( _iterable_ )
PerformPromiseRace (
_iteratorRecord_: unknown,
- _constructor_: unknown,
+ _constructor_: a constructor,
_resultCapability_: a PromiseCapability Record,
- _promiseResolve_: unknown,
+ _promiseResolve_: a function object,
)
- 1. Assert: IsConstructor(_constructor_) is *true*.
- 1. Assert: IsCallable(_promiseResolve_) is *true*.
1. Repeat,
1. Let _next_ be IteratorStep(_iteratorRecord_).
1. If _next_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.