From ad9dc4f47a237c7eb5b113174f9ebcd9358a58f5 Mon Sep 17 00:00:00 2001 From: Michael Dyck Date: Sat, 3 Sep 2022 21:47:50 -0400 Subject: [PATCH] Rename "IsCallable" as "IsFunction" --- spec.html | 142 +++++++++++++++++++++++++++--------------------------- 1 file changed, 71 insertions(+), 71 deletions(-) diff --git a/spec.html b/spec.html index 4927a2b2b56..4dc317a8d8d 100644 --- a/spec.html +++ b/spec.html @@ -4409,12 +4409,12 @@

1. Let _hasGet_ be ? HasProperty(_Obj_, *"get"*). 1. If _hasGet_ is *true*, then 1. Let _getter_ be ? Get(_Obj_, *"get"*). - 1. If IsCallable(_getter_) is *false* and _getter_ is not *undefined*, throw a *TypeError* exception. + 1. If IsFunction(_getter_) is *false* and _getter_ is not *undefined*, throw a *TypeError* exception. 1. Set _desc_.[[Get]] to _getter_. 1. Let _hasSet_ be ? HasProperty(_Obj_, *"set"*). 1. If _hasSet_ is *true*, then 1. Let _setter_ be ? Get(_Obj_, *"set"*). - 1. If IsCallable(_setter_) is *false* and _setter_ is not *undefined*, throw a *TypeError* exception. + 1. If IsFunction(_setter_) is *false* and _setter_ is not *undefined*, throw a *TypeError* exception. 1. Set _desc_.[[Set]] to _setter_. 1. If _desc_ has a [[Get]] field or _desc_ has a [[Set]] field, then 1. If _desc_ has a [[Value]] field or _desc_ has a [[Writable]] field, throw a *TypeError* exception. @@ -4782,7 +4782,7 @@

1. Let _methodNames_ be « *"valueOf"*, *"toString"* ». 1. For each element _name_ of _methodNames_, do 1. Let _method_ be ? Get(_O_, _name_). - 1. If IsCallable(_method_) is *true*, then + 1. If IsFunction(_method_) is *true*, then 1. Let _result_ be ? Call(_method_, _O_). 1. If _result_ is not an Object, return _result_. 1. Throw a *TypeError* exception. @@ -5882,15 +5882,15 @@

- +

- IsCallable ( + IsFunction ( _argument_: an ECMAScript language value, ): a Boolean

description
-
It determines if _argument_ is a callable function with a [[Call]] internal method.
+
It determines if _argument_ is a function (i.e., an Object with a [[Call]] internal method).
1. If _argument_ is not an Object, return *false*. @@ -6413,7 +6413,7 @@

1. Let _func_ be ? GetV(_V_, _P_). 1. If _func_ is either *undefined* or *null*, return *undefined*. - 1. If IsCallable(_func_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_func_) is *false*, throw a *TypeError* exception. 1. Return _func_. @@ -6466,7 +6466,7 @@

1. If _argumentsList_ is not present, set _argumentsList_ to a new empty List. - 1. If IsCallable(_F_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_F_) is *false*, throw a *TypeError* exception. 1. Return ? _F_.[[Call]](_V_, _argumentsList_). @@ -6652,7 +6652,7 @@

It implements the default algorithm for determining if _O_ inherits from the instance object inheritance path provided by _C_.
- 1. If IsCallable(_C_) is *false*, return *false*. + 1. If IsFunction(_C_) is *false*, return *false*. 1. If _C_ has a [[BoundTargetFunction]] internal slot, then 1. Let _BC_ be _C_.[[BoundTargetFunction]]. 1. Return ? InstanceofOperator(_O_, _BC_). @@ -12098,7 +12098,7 @@

The default implementation of HostCallJobCallback performs the following steps when called:

- 1. Assert: IsCallable(_jobCallback_.[[Callback]]) is *true*. + 1. Assert: IsFunction(_jobCallback_.[[Callback]]) is *true*. 1. Return ? Call(_jobCallback_.[[Callback]], _V_, _argumentsList_).

ECMAScript hosts that are not web browsers must use the default implementation of HostCallJobCallback.

@@ -15801,7 +15801,7 @@

1. If _handler_ is not an Object, throw a *TypeError* exception. 1. Let _P_ be MakeBasicObject(« [[ProxyHandler]], [[ProxyTarget]] »). 1. Set _P_'s essential internal methods, except for [[Call]] and [[Construct]], to the definitions specified in . - 1. If IsCallable(_target_) is *true*, then + 1. If IsFunction(_target_) is *true*, then 1. Set _P_.[[Call]] as specified in . 1. If IsConstructor(_target_) is *true*, then 1. Set _P_.[[Construct]] as specified in . @@ -19135,7 +19135,7 @@

1. Let _thisValue_ be *undefined*. 1. Let _argList_ be ? ArgumentListEvaluation of _arguments_. 1. If _func_ is not an Object, throw a *TypeError* exception. - 1. If IsCallable(_func_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_func_) is *false*, throw a *TypeError* exception. 1. If _tailPosition_ is *true*, perform PrepareForTailCall(). 1. Return ? Call(_func_, _thisValue_, _argList_). @@ -20149,7 +20149,7 @@

1. Let _instOfHandler_ be ? GetMethod(_target_, @@hasInstance). 1. If _instOfHandler_ is not *undefined*, then 1. Return ToBoolean(? Call(_instOfHandler_, _target_, « _V_ »)). - 1. [id="step-instanceof-check-function"] If IsCallable(_target_) is *false*, throw a *TypeError* exception. + 1. [id="step-instanceof-check-function"] If IsFunction(_target_) is *false*, throw a *TypeError* exception. 1. [id="step-instanceof-fallback"] Return ? OrdinaryHasInstance(_target_, _V_). @@ -29837,7 +29837,7 @@

Object.prototype.__defineGetter__ ( _P_, _getter_ )

This method performs the following steps when called:

1. Let _O_ be ? ToObject(*this* value). - 1. If IsCallable(_getter_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_getter_) is *false*, throw a *TypeError* exception. 1. Let _desc_ be PropertyDescriptor { [[Get]]: _getter_, [[Enumerable]]: *true*, [[Configurable]]: *true* }. 1. Let _key_ be ? ToPropertyKey(_P_). 1. Perform ? DefinePropertyOrThrow(_O_, _key_, _desc_). @@ -29850,7 +29850,7 @@

Object.prototype.__defineSetter__ ( _P_, _setter_ )

This method performs the following steps when called:

1. Let _O_ be ? ToObject(*this* value). - 1. If IsCallable(_setter_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_setter_) is *false*, throw a *TypeError* exception. 1. Let _desc_ be PropertyDescriptor { [[Set]]: _setter_, [[Enumerable]]: *true*, [[Configurable]]: *true* }. 1. Let _key_ be ? ToPropertyKey(_P_). 1. Perform ? DefinePropertyOrThrow(_O_, _key_, _desc_). @@ -30063,7 +30063,7 @@

Function.prototype.apply ( _thisArg_, _argArray_ )

This method performs the following steps when called:

1. Let _func_ be the *this* value. - 1. If IsCallable(_func_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_func_) is *false*, throw a *TypeError* exception. 1. If _argArray_ is *undefined* or *null*, then 1. Perform PrepareForTailCall(). 1. Return ? Call(_func_, _thisArg_). @@ -30084,7 +30084,7 @@

Function.prototype.bind ( _thisArg_, ..._args_ )

This method performs the following steps when called:

1. Let _Target_ be the *this* value. - 1. If IsCallable(_Target_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_Target_) is *false*, throw a *TypeError* exception. 1. Let _F_ be ? BoundFunctionCreate(_Target_, _thisArg_, _args_). 1. Let _L_ be 0. 1. Let _targetHasLength_ be ? HasOwnProperty(_Target_, *"length"*). @@ -30117,7 +30117,7 @@

Function.prototype.call ( _thisArg_, ..._args_ )

This method performs the following steps when called:

1. Let _func_ be the *this* value. - 1. If IsCallable(_func_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_func_) is *false*, throw a *TypeError* exception. 1. Perform PrepareForTailCall(). 1. [id="step-function-proto-call-call"] Return ? Call(_func_, _thisArg_, _args_). @@ -30142,7 +30142,7 @@

Function.prototype.toString ( )

1. If _func_ is an Object and _func_ has a [[SourceText]] internal slot and _func_.[[SourceText]] is a sequence of Unicode code points and HostHasSourceTextAvailable(_func_) is *true*, then 1. Return CodePointsToString(_func_.[[SourceText]]). 1. If _func_ is a built-in function object, return an implementation-defined String source code representation of _func_. The representation must have the syntax of a |NativeFunction|. Additionally, if _func_ has an [[InitialName]] internal slot and _func_.[[InitialName]] is a String, the portion of the returned String that would be matched by |NativeFunctionAccessor?| |PropertyName| must be the value of _func_.[[InitialName]]. - 1. If _func_ is an Object and IsCallable(_func_) is *true*, return an implementation-defined String source code representation of _func_. The representation must have the syntax of a |NativeFunction|. + 1. If _func_ is an Object and IsFunction(_func_) is *true*, return an implementation-defined String source code representation of _func_. The representation must have the syntax of a |NativeFunction|. 1. Throw a *TypeError* exception.
@@ -33950,7 +33950,7 @@

String.prototype.replace ( _searchValue_, _replaceValue_ )

1. Return ? Call(_replacer_, _searchValue_, « _O_, _replaceValue_ »). 1. Let _string_ be ? ToString(_O_). 1. Let _searchString_ be ? ToString(_searchValue_). - 1. Let _functionalReplace_ be IsCallable(_replaceValue_). + 1. Let _functionalReplace_ be IsFunction(_replaceValue_). 1. If _functionalReplace_ is *false*, then 1. Set _replaceValue_ to ? ToString(_replaceValue_). 1. Let _searchLength_ be the length of _searchString_. @@ -34063,7 +34063,7 @@

String.prototype.replaceAll ( _searchValue_, _replaceValue_ )

1. Return ? Call(_replacer_, _searchValue_, « _O_, _replaceValue_ »). 1. Let _string_ be ? ToString(_O_). 1. Let _searchString_ be ? ToString(_searchValue_). - 1. Let _functionalReplace_ be IsCallable(_replaceValue_). + 1. Let _functionalReplace_ be IsFunction(_replaceValue_). 1. If _functionalReplace_ is *false*, then 1. Set _replaceValue_ to ? ToString(_replaceValue_). 1. Let _searchLength_ be the length of _searchString_. @@ -36246,7 +36246,7 @@

1. Let _exec_ be ? Get(_R_, *"exec"*). - 1. If IsCallable(_exec_) is *true*, then + 1. If IsFunction(_exec_) is *true*, then 1. Let _result_ be ? Call(_exec_, _R_, « _S_ »). 1. If _result_ is not an Object and _result_ is not *null*, throw a *TypeError* exception. 1. Return _result_. @@ -36645,7 +36645,7 @@

RegExp.prototype [ @@replace ] ( _string_, _replaceValue_ )

1. If _rx_ is not an Object, throw a *TypeError* exception. 1. Let _S_ be ? ToString(_string_). 1. Let _lengthS_ be the length of _S_. - 1. Let _functionalReplace_ be IsCallable(_replaceValue_). + 1. Let _functionalReplace_ be IsFunction(_replaceValue_). 1. If _functionalReplace_ is *false*, then 1. Set _replaceValue_ to ? ToString(_replaceValue_). 1. Let _flags_ be ? ToString(? Get(_rx_, *"flags"*)). @@ -37009,7 +37009,7 @@

Array.from ( _items_ [ , _mapfn_ [ , _thisArg_ ] ] )

1. Let _C_ be the *this* value. 1. If _mapfn_ is *undefined*, let _mapping_ be *false*. 1. Else, - 1. If IsCallable(_mapfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_mapfn_) is *false*, throw a *TypeError* exception. 1. Let _mapping_ be *true*. 1. Let _usingIterator_ be ? GetMethod(_items_, @@iterator). 1. If _usingIterator_ is not *undefined*, then @@ -37274,7 +37274,7 @@

Array.prototype.every ( _callbackfn_ [ , _thisArg_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _len_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -37336,7 +37336,7 @@

Array.prototype.filter ( _callbackfn_ [ , _thisArg_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _len_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _A_ be ? ArraySpeciesCreate(_O_, 0). 1. Let _k_ be 0. 1. Let _to_ be 0. @@ -37370,7 +37370,7 @@

Array.prototype.find ( _predicate_ [ , _thisArg_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _len_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_predicate_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_predicate_) is *false*, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -37398,7 +37398,7 @@

Array.prototype.findIndex ( _predicate_ [ , _thisArg_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _len_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_predicate_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_predicate_) is *false*, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -37426,7 +37426,7 @@

Array.prototype.findLast ( _predicate_ [ , _thisArg_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _len_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_predicate_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_predicate_) is *false*, throw a *TypeError* exception. 1. Let _k_ be _len_ - 1. 1. Repeat, while _k_ ≥ 0, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -37454,7 +37454,7 @@

Array.prototype.findLastIndex ( _predicate_ [ , _thisArg_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _len_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_predicate_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_predicate_) is *false*, throw a *TypeError* exception. 1. Let _k_ be _len_ - 1. 1. Repeat, while _k_ ≥ 0, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -37499,7 +37499,7 @@

- 1. Assert: If _mapperFunction_ is present, then IsCallable(_mapperFunction_) is *true*, _thisArg_ is present, and _depth_ is 1. + 1. Assert: If _mapperFunction_ is present, then IsFunction(_mapperFunction_) is *true*, _thisArg_ is present, and _depth_ is 1. 1. Let _targetIndex_ be _start_. 1. Let _sourceIndex_ be *+0*𝔽. 1. Repeat, while ℝ(_sourceIndex_) < _sourceLen_, @@ -37533,7 +37533,7 @@

Array.prototype.flatMap ( _mapperFunction_ [ , _thisArg_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _sourceLen_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_mapperFunction_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_mapperFunction_) is *false*, throw a *TypeError* exception. 1. Let _A_ be ? ArraySpeciesCreate(_O_, 0). 1. Perform ? FlattenIntoArray(_A_, _O_, _sourceLen_, 0, 1, _mapperFunction_, _thisArg_). 1. Return _A_. @@ -37553,7 +37553,7 @@

Array.prototype.forEach ( _callbackfn_ [ , _thisArg_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _len_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -37714,7 +37714,7 @@

Array.prototype.map ( _callbackfn_ [ , _thisArg_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _len_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _A_ be ? ArraySpeciesCreate(_O_, _len_). 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, @@ -37793,7 +37793,7 @@

Array.prototype.reduce ( _callbackfn_ [ , _initialValue_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _len_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. If _len_ = 0 and _initialValue_ is not present, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Let _accumulator_ be *undefined*. @@ -37834,7 +37834,7 @@

Array.prototype.reduceRight ( _callbackfn_ [ , _initialValue_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _len_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. If _len_ is 0 and _initialValue_ is not present, throw a *TypeError* exception. 1. Let _k_ be _len_ - 1. 1. Let _accumulator_ be *undefined*. @@ -37986,7 +37986,7 @@

Array.prototype.some ( _callbackfn_ [ , _thisArg_ ] )

1. Let _O_ be ? ToObject(*this* value). 1. Let _len_ be ? LengthOfArrayLike(_O_). - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -38008,7 +38008,7 @@

Array.prototype.sort ( _comparefn_ )

This method sorts the elements of this array. The sort must be stable (that is, elements that compare equal must remain in their original order). If _comparefn_ is not *undefined*, it should be a function that accepts two arguments _x_ and _y_ and returns a negative Number if _x_ < _y_, a positive Number if _x_ > _y_, or a zero otherwise.

It performs the following steps when called:

- 1. [id="step-array-sort-comparefn"] If _comparefn_ is not *undefined* and IsCallable(_comparefn_) is *false*, throw a *TypeError* exception. + 1. [id="step-array-sort-comparefn"] If _comparefn_ is not *undefined* and IsFunction(_comparefn_) is *false*, throw a *TypeError* exception. 1. Let _obj_ be ? ToObject(*this* value). 1. [id="step-array-sort-len"] Let _len_ be ? LengthOfArrayLike(_obj_). 1. Let _SortCompare_ be a new Abstract Closure with parameters (_x_, _y_) that captures _comparefn_ and performs the following steps when called: @@ -38220,7 +38220,7 @@

Array.prototype.toString ( )

1. Let _array_ be ? ToObject(*this* value). 1. Let _func_ be ? Get(_array_, *"join"*). - 1. If IsCallable(_func_) is *false*, set _func_ to the intrinsic function %Object.prototype.toString%. + 1. If IsFunction(_func_) is *false*, set _func_ to the intrinsic function %Object.prototype.toString%. 1. Return ? Call(_func_, _array_). @@ -38644,7 +38644,7 @@

%TypedArray%.from ( _source_ [ , _mapfn_ [ , _thisArg_ ] ] )

1. If IsConstructor(_C_) is *false*, throw a *TypeError* exception. 1. If _mapfn_ is *undefined*, let _mapping_ be *false*. 1. Else, - 1. If IsCallable(_mapfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_mapfn_) is *false*, throw a *TypeError* exception. 1. Let _mapping_ be *true*. 1. Let _usingIterator_ be ? GetMethod(_source_, @@iterator). 1. If _usingIterator_ is not *undefined*, then @@ -38851,7 +38851,7 @@

%TypedArray%.prototype.every ( _callbackfn_ [ , _thisArg_ ] )

1. Let _O_ be the *this* value. 1. Perform ? ValidateTypedArray(_O_). 1. Let _len_ be _O_.[[ArrayLength]]. - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -38899,7 +38899,7 @@

%TypedArray%.prototype.filter ( _callbackfn_ [ , _thisArg_ ] )

1. Let _O_ be the *this* value. 1. Perform ? ValidateTypedArray(_O_). 1. Let _len_ be _O_.[[ArrayLength]]. - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _kept_ be a new empty List. 1. Let _captured_ be 0. 1. Let _k_ be 0. @@ -38929,7 +38929,7 @@

%TypedArray%.prototype.find ( _predicate_ [ , _thisArg_ ] )

1. Let _O_ be the *this* value. 1. Perform ? ValidateTypedArray(_O_). 1. Let _len_ be _O_.[[ArrayLength]]. - 1. If IsCallable(_predicate_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_predicate_) is *false*, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -38950,7 +38950,7 @@

%TypedArray%.prototype.findIndex ( _predicate_ [ , _thisArg_ ] )

1. Let _O_ be the *this* value. 1. Perform ? ValidateTypedArray(_O_). 1. Let _len_ be _O_.[[ArrayLength]]. - 1. If IsCallable(_predicate_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_predicate_) is *false*, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -38971,7 +38971,7 @@

%TypedArray%.prototype.findLast ( _predicate_ [ , _thisArg_ ] )

1. Let _O_ be the *this* value. 1. Perform ? ValidateTypedArray(_O_). 1. Let _len_ be _O_.[[ArrayLength]]. - 1. If IsCallable(_predicate_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_predicate_) is *false*, throw a *TypeError* exception. 1. Let _k_ be _len_ - 1. 1. Repeat, while _k_ ≥ 0, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -38992,7 +38992,7 @@

%TypedArray%.prototype.findLastIndex ( _predicate_ [ , _thisArg_ ] )

1. Let _O_ be the *this* value. 1. Perform ? ValidateTypedArray(_O_). 1. Let _len_ be _O_.[[ArrayLength]]. - 1. If IsCallable(_predicate_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_predicate_) is *false*, throw a *TypeError* exception. 1. Let _k_ be _len_ - 1. 1. Repeat, while _k_ ≥ 0, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -39013,7 +39013,7 @@

%TypedArray%.prototype.forEach ( _callbackfn_ [ , _thisArg_ ] )

1. Let _O_ be the *this* value. 1. Perform ? ValidateTypedArray(_O_). 1. Let _len_ be _O_.[[ArrayLength]]. - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -39165,7 +39165,7 @@

%TypedArray%.prototype.map ( _callbackfn_ [ , _thisArg_ ] )

1. Let _O_ be the *this* value. 1. Perform ? ValidateTypedArray(_O_). 1. Let _len_ be _O_.[[ArrayLength]]. - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _A_ be ? TypedArraySpeciesCreate(_O_, « 𝔽(_len_) »). 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, @@ -39187,7 +39187,7 @@

%TypedArray%.prototype.reduce ( _callbackfn_ [ , _initialValue_ ] )

1. Let _O_ be the *this* value. 1. Perform ? ValidateTypedArray(_O_). 1. Let _len_ be _O_.[[ArrayLength]]. - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. If _len_ = 0 and _initialValue_ is not present, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Let _accumulator_ be *undefined*. @@ -39215,7 +39215,7 @@

%TypedArray%.prototype.reduceRight ( _callbackfn_ [ , _initialValue_ ] )

%TypedArray%.prototype.some ( _callbackfn_ [ , _thisArg_ ] )

1. Let _O_ be the *this* value. 1. Perform ? ValidateTypedArray(_O_). 1. Let _len_ be _O_.[[ArrayLength]]. - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _k_ be 0. 1. Repeat, while _k_ < _len_, 1. Let _Pk_ be ! ToString(𝔽(_k_)). @@ -39440,7 +39440,7 @@

%TypedArray%.prototype.sort ( _comparefn_ )

This method is not generic. The *this* value must be an object with a [[TypedArrayName]] internal slot.

It performs the following steps when called:

- 1. If _comparefn_ is not *undefined* and IsCallable(_comparefn_) is *false*, throw a *TypeError* exception. + 1. If _comparefn_ is not *undefined* and IsFunction(_comparefn_) is *false*, throw a *TypeError* exception. 1. Let _obj_ be the *this* value. 1. Perform ? ValidateTypedArray(_obj_). 1. Let _len_ be _obj_.[[ArrayLength]]. @@ -39948,7 +39948,7 @@

_adder_ will be invoked, with _target_ as the receiver.
- 1. If IsCallable(_adder_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_adder_) is *false*, throw a *TypeError* exception. 1. Let _iteratorRecord_ be ? GetIterator(_iterable_). 1. Repeat, 1. Let _next_ be ? IteratorStep(_iteratorRecord_). @@ -40063,7 +40063,7 @@

Map.prototype.forEach ( _callbackfn_ [ , _thisArg_ ] )

1. Let _M_ be the *this* value. 1. Perform ? RequireInternalSlot(_M_, [[MapData]]). - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _entries_ be the List that is _M_.[[MapData]]. 1. Let _numEntries_ be the number of elements of _entries_. 1. Let _index_ be 0. @@ -40266,7 +40266,7 @@

Set ( [ _iterable_ ] )

1. Set _set_.[[SetData]] to a new empty List. 1. If _iterable_ is either *undefined* or *null*, return _set_. 1. Let _adder_ be ? Get(_set_, *"add"*). - 1. If IsCallable(_adder_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_adder_) is *false*, throw a *TypeError* exception. 1. Let _iteratorRecord_ be ? GetIterator(_iterable_). 1. Repeat, 1. Let _next_ be ? IteratorStep(_iteratorRecord_). @@ -40388,7 +40388,7 @@

Set.prototype.forEach ( _callbackfn_ [ , _thisArg_ ] )

1. Let _S_ be the *this* value. 1. Perform ? RequireInternalSlot(_S_, [[SetData]]). - 1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_callbackfn_) is *false*, throw a *TypeError* exception. 1. Let _entries_ be the List that is _S_.[[SetData]]. 1. Let _numEntries_ be the number of elements of _entries_. 1. Let _index_ be 0. @@ -40713,7 +40713,7 @@

WeakSet ( [ _iterable_ ] )

1. Set _set_.[[WeakSetData]] to a new empty List. 1. If _iterable_ is either *undefined* or *null*, return _set_. 1. Let _adder_ be ? Get(_set_, *"add"*). - 1. If IsCallable(_adder_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_adder_) is *false*, throw a *TypeError* exception. 1. Let _iteratorRecord_ be ? GetIterator(_iterable_). 1. Repeat, 1. Let _next_ be ? IteratorStep(_iteratorRecord_). @@ -42408,7 +42408,7 @@

JSON.parse ( _text_ [ , _reviver_ ] )

1. NOTE: The PropertyDefinitionEvaluation semantics defined in have special handling for the above evaluation. 1. Let _unfiltered_ be _completion_.[[Value]]. 1. [id="step-json-parse-assert-type"] Assert: _unfiltered_ is either a String, Number, Boolean, Null, or an Object that is defined by either an |ArrayLiteral| or an |ObjectLiteral|. - 1. If IsCallable(_reviver_) is *true*, then + 1. If IsFunction(_reviver_) is *true*, then 1. Let _root_ be OrdinaryObjectCreate(%Object.prototype%). 1. Let _rootName_ be the empty String. 1. Perform ! CreateDataPropertyOrThrow(_root_, _rootName_, _unfiltered_). @@ -42477,7 +42477,7 @@

JSON.stringify ( _value_ [ , _replacer_ [ , _space_ ] ] )

1. Let _indent_ be the empty String. 1. Let _PropertyList_ and _ReplacerFunction_ be *undefined*. 1. If _replacer_ is an Object, then - 1. If IsCallable(_replacer_) is *true*, then + 1. If IsFunction(_replacer_) is *true*, then 1. Set _ReplacerFunction_ to _replacer_. 1. Else, 1. Let _isArray_ be ? IsArray(_replacer_). @@ -42607,7 +42607,7 @@

1. Let _value_ be ? Get(_holder_, _key_). 1. If _value_ is an Object or _value_ is a BigInt, then 1. Let _toJSON_ be ? GetV(_value_, *"toJSON"*). - 1. If IsCallable(_toJSON_) is *true*, then + 1. If IsFunction(_toJSON_) is *true*, then 1. Set _value_ to ? Call(_toJSON_, _value_, « _key_ »). 1. If _state_.[[ReplacerFunction]] is not *undefined*, then 1. Set _value_ to ? Call(_state_.[[ReplacerFunction]], _holder_, « _key_, _value_ »). @@ -42628,7 +42628,7 @@

1. If _value_ is finite, return ! ToString(_value_). 1. Return *"null"*. 1. If _value_ is a BigInt, throw a *TypeError* exception. - 1. If _value_ is an Object and IsCallable(_value_) is *false*, then + 1. If _value_ is an Object and IsFunction(_value_) is *false*, then 1. Let _isArray_ be ? IsArray(_value_). 1. If _isArray_ is *true*, return ? SerializeJSONArray(_state_, _value_). 1. Return ? SerializeJSONObject(_state_, _value_). @@ -43040,7 +43040,7 @@

FinalizationRegistry ( _cleanupCallback_ )

This function performs the following steps when called:

1. If NewTarget is *undefined*, throw a *TypeError* exception. - 1. If IsCallable(_cleanupCallback_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_cleanupCallback_) is *false*, throw a *TypeError* exception. 1. Let _finalizationRegistry_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%FinalizationRegistry.prototype%"*, « [[Realm]], [[CleanupCallback]], [[Cells]] »). 1. Let _fn_ be the active function object. 1. Set _finalizationRegistry_.[[Realm]] to _fn_.[[Realm]]. @@ -43787,7 +43787,7 @@

Promise Resolve Functions

1. Perform RejectPromise(_promise_, _then_.[[Value]]). 1. Return *undefined*. 1. Let _thenAction_ be _then_.[[Value]]. - 1. If IsCallable(_thenAction_) is *false*, then + 1. If IsFunction(_thenAction_) is *false*, then 1. Perform FulfillPromise(_promise_, _resolution_). 1. Return *undefined*. 1. Let _thenJobCallback_ be HostMakeJobCallback(_thenAction_). @@ -43842,8 +43842,8 @@

1. Return *undefined*. 1. Let _executor_ be CreateBuiltinFunction(_executorClosure_, 2, *""*, « »). 1. Let _promise_ be ? Construct(_C_, « _executor_ »). - 1. If IsCallable(_promiseCapability_.[[Resolve]]) is *false*, throw a *TypeError* exception. - 1. If IsCallable(_promiseCapability_.[[Reject]]) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_promiseCapability_.[[Resolve]]) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_promiseCapability_.[[Reject]]) is *false*, throw a *TypeError* exception. 1. Set _promiseCapability_.[[Promise]] to _promise_. 1. Return _promiseCapability_. @@ -44032,7 +44032,7 @@

Promise ( _executor_ )

This function performs the following steps when called:

1. If NewTarget is *undefined*, throw a *TypeError* exception. - 1. If IsCallable(_executor_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_executor_) is *false*, throw a *TypeError* exception. 1. Let _promise_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%Promise.prototype%"*, « [[PromiseState]], [[PromiseResult]], [[PromiseFulfillReactions]], [[PromiseRejectReactions]], [[PromiseIsHandled]] »). 1. Set _promise_.[[PromiseState]] to ~pending~. 1. Set _promise_.[[PromiseFulfillReactions]] to a new empty List. @@ -44091,7 +44091,7 @@

1. Let _promiseResolve_ be ? Get(_promiseConstructor_, *"resolve"*). - 1. If IsCallable(_promiseResolve_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_promiseResolve_) is *false*, throw a *TypeError* exception. 1. Return _promiseResolve_. @@ -44531,7 +44531,7 @@

Promise.prototype.finally ( _onFinally_ )

1. If _promise_ is not an Object, throw a *TypeError* exception. 1. Let _C_ be ? SpeciesConstructor(_promise_, %Promise%). 1. Assert: IsConstructor(_C_) is *true*. - 1. If IsCallable(_onFinally_) is *false*, then + 1. If IsFunction(_onFinally_) is *false*, then 1. Let _thenFinally_ be _onFinally_. 1. Let _catchFinally_ be _onFinally_. 1. Else, @@ -44583,11 +44583,11 @@

1. Assert: IsPromise(_promise_) is *true*. 1. If _resultCapability_ is not present, then 1. Set _resultCapability_ to *undefined*. - 1. If IsCallable(_onFulfilled_) is *false*, then + 1. If IsFunction(_onFulfilled_) is *false*, then 1. Let _onFulfilledJobCallback_ be ~empty~. 1. Else, 1. Let _onFulfilledJobCallback_ be HostMakeJobCallback(_onFulfilled_). - 1. If IsCallable(_onRejected_) is *false*, then + 1. If IsFunction(_onRejected_) is *false*, then 1. Let _onRejectedJobCallback_ be ~empty~. 1. Else, 1. Let _onRejectedJobCallback_ be HostMakeJobCallback(_onRejected_). @@ -45829,7 +45829,7 @@

The Reflect Object

Reflect.apply ( _target_, _thisArgument_, _argumentsList_ )

This function performs the following steps when called:

- 1. If IsCallable(_target_) is *false*, throw a *TypeError* exception. + 1. If IsFunction(_target_) is *false*, throw a *TypeError* exception. 1. Let _args_ be ? CreateListFromArrayLike(_argumentsList_). 1. Perform PrepareForTailCall(). 1. Return ? Call(_target_, _thisArgument_, _args_).