Skip to content

Commit

Permalink
Eliminate most other uses of "callable"
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdyck committed Aug 9, 2024
1 parent 06506f2 commit a84ff37
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -3054,7 +3054,7 @@ <h1>Object Internal Methods and Internal Slots</h1>
(<em>any</em>, a List of <em>any</em>) <b>→</b> <em>any</em>
</td>
<td>
Executes code associated with this object. Invoked via a function call expression. The arguments to the internal method are a *this* value and a List whose elements are the arguments passed to the function by a call expression. Objects that implement this internal method are <em>callable</em>.
Executes code associated with this object. Invoked via a function call expression. The arguments to the internal method are a *this* value and a List whose elements are the arguments passed to the function by a call expression. Objects that implement this internal method are functions.
</td>
</tr>
<tr>
Expand Down Expand Up @@ -4152,8 +4152,8 @@ <h1>The Completion Record Specification Type</h1>
<li><dfn variants="abrupt completions">abrupt completion</dfn> refers to any Completion Record with a [[Type]] value other than ~normal~.</li>
<li>a <dfn variants="normal completions containing">normal completion containing</dfn> some type of value refers to a normal completion that has a value of that type in its [[Value]] field.</li>
</ul>
<p>Callable objects that are defined in this specification only return a normal completion or a throw completion. Returning any other kind of Completion Record is considered an editorial error.</p>
<p>Implementation-defined callable objects must return either a normal completion or a throw completion.</p>
<p>Functions that are defined in this specification only return a normal completion or a throw completion. Returning any other kind of Completion Record is considered an editorial error.</p>
<p>Implementation-defined functions must return either a normal completion or a throw completion.</p>

<emu-clause id="sec-normalcompletion" type="abstract operation">
<h1>
Expand Down Expand Up @@ -13957,7 +13957,7 @@ <h1>Bound Function Exotic Objects</h1>
[[BoundTargetFunction]]
</td>
<td>
a callable Object
a function object
</td>
<td>
The wrapped function object.
Expand Down Expand Up @@ -28938,7 +28938,7 @@ <h1>Forbidden Extensions</h1>
<emu-clause id="sec-ecmascript-standard-built-in-objects">
<h1>ECMAScript Standard Built-in Objects</h1>
<p>There are certain built-in objects available whenever an ECMAScript |Script| or |Module| begins execution. One, the global object, is part of the global environment of the executing program. Others are accessible as initial properties of the global object or indirectly as properties of accessible built-in objects.</p>
<p>Unless specified otherwise, a built-in object that is callable as a function is a built-in function object with the characteristics described in <emu-xref href="#sec-built-in-function-objects"></emu-xref>. Unless specified otherwise, the [[Extensible]] internal slot of a built-in object initially has the value *true*. Every built-in function object has a [[Realm]] internal slot whose value is the Realm Record of the realm for which the object was initially created.</p>
<p>Unless specified otherwise, a built-in object that is a function is a built-in function object with the characteristics described in <emu-xref href="#sec-built-in-function-objects"></emu-xref>. Unless specified otherwise, the [[Extensible]] internal slot of a built-in object initially has the value *true*. Every built-in function object has a [[Realm]] internal slot whose value is the Realm Record of the realm for which the object was initially created.</p>
<p>Many built-in objects are functions: they can be invoked with arguments. Some of them furthermore are constructors: they are functions intended for use with the `new` operator. For each built-in function, this specification describes the arguments required by that function and the properties of that function object. For each built-in constructor, this specification furthermore describes properties of the prototype object of that constructor and properties of specific object instances returned by a `new` expression that invokes that constructor.</p>
<p>Unless otherwise specified in the description of a particular function, if a built-in function or constructor is given fewer arguments than the function is specified to require, the function or constructor shall behave exactly as if it had been given sufficient additional arguments, each such argument being the *undefined* value. Such missing arguments are considered to be “not present” and may be identified in that manner by specification algorithms. In the description of a particular function, the terms “*this* value” and “NewTarget” have the meanings given in <emu-xref href="#sec-built-in-function-objects"></emu-xref>.</p>
<p>Unless otherwise specified in the description of a particular function, if a built-in function or constructor described is given more arguments than the function is specified to allow, the extra arguments are evaluated by the call and then ignored by the function. However, an implementation may define implementation specific behaviour relating to such arguments as long as the behaviour is not the throwing of a *TypeError* exception that is predicated simply on the presence of an extra argument.</p>
Expand Down

0 comments on commit a84ff37

Please sign in to comment.