Skip to content

Commit

Permalink
Update gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot committed Oct 16, 2024
1 parent 040b947 commit 0c2414e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12859,7 +12859,7 @@ <h1><span class="secnum">10.3.3</span> BuiltinCallOrConstruct ( <var>F</var>, <v

<emu-clause id="sec-createbuiltinfunction" type="abstract operation" aoid="CreateBuiltinFunction">
<h1><span class="secnum">10.3.4</span> CreateBuiltinFunction ( <var>behaviour</var>, <var>length</var>, <var>name</var>, <var>additionalInternalSlotsList</var> [ , <var>realm</var> [ , <var>prototype</var> [ , <var>prefix</var> ] ] ] )</h1>
<p>The abstract operation CreateBuiltinFunction takes arguments <var>behaviour</var> (an <emu-xref href="#sec-abstract-closure" id="_ref_4739"><a href="#sec-abstract-closure">Abstract Closure</a></emu-xref>, a set of algorithm steps, or some other definition of a function's behaviour provided in this specification), <var>length</var> (a non-negative <emu-xref href="#integer" id="_ref_4740"><a href="#integer">integer</a></emu-xref> or +∞), <var>name</var> (a <emu-xref href="#sec-object-type" id="_ref_4741"><a href="#sec-object-type">property key</a></emu-xref> or a <emu-xref href="#sec-private-names" id="_ref_4742"><a href="#sec-private-names">Private Name</a></emu-xref>), and <var>additionalInternalSlotsList</var> (a <emu-xref href="#sec-list-and-record-specification-type" id="_ref_4743"><a href="#sec-list-and-record-specification-type">List</a></emu-xref> of names of internal slots) and optional arguments <var>realm</var> (a <emu-xref href="#realm-record" id="_ref_4744"><a href="#realm-record">Realm Record</a></emu-xref>), <var>prototype</var> (an Object or <emu-val>null</emu-val>), and <var>prefix</var> (a String) and returns a <emu-xref href="#function-object" id="_ref_4745"><a href="#function-object">function object</a></emu-xref>. <var>additionalInternalSlotsList</var> contains the names of additional internal slots that must be defined as part of the object. This operation creates a built-in <emu-xref href="#function-object" id="_ref_4746"><a href="#function-object">function object</a></emu-xref>. It performs the following steps when called:</p>
<p>The abstract operation CreateBuiltinFunction takes arguments <var>behaviour</var> (an <emu-xref href="#sec-abstract-closure" id="_ref_4739"><a href="#sec-abstract-closure">Abstract Closure</a></emu-xref>, a set of algorithm steps, or some other definition of a function's behaviour provided in this specification), <var>length</var> (a non-negative <emu-xref href="#integer" id="_ref_4740"><a href="#integer">integer</a></emu-xref> or +∞), <var>name</var> (a <emu-xref href="#sec-object-type" id="_ref_4741"><a href="#sec-object-type">property key</a></emu-xref> or a <emu-xref href="#sec-private-names" id="_ref_4742"><a href="#sec-private-names">Private Name</a></emu-xref>), and <var>additionalInternalSlotsList</var> (a <emu-xref href="#sec-list-and-record-specification-type" id="_ref_4743"><a href="#sec-list-and-record-specification-type">List</a></emu-xref> of names of internal slots) and optional arguments <var>realm</var> (a <emu-xref href="#realm-record" id="_ref_4744"><a href="#realm-record">Realm Record</a></emu-xref>), <var>prototype</var> (an Object or <emu-val>null</emu-val>), and <var>prefix</var> (a String) and returns a built-in <emu-xref href="#function-object" id="_ref_4745"><a href="#function-object">function object</a></emu-xref>. <var>additionalInternalSlotsList</var> contains the names of additional internal slots that must be defined as part of the object. This operation creates a built-in <emu-xref href="#function-object" id="_ref_4746"><a href="#function-object">function object</a></emu-xref>. It performs the following steps when called:</p>
<emu-alg><ol><li>If <var>realm</var> is not present, set <var>realm</var> to <emu-xref href="#current-realm" id="_ref_4747"><a href="#current-realm">the current Realm Record</a></emu-xref>.</li><li>If <var>prototype</var> is not present, set <var>prototype</var> to <var>realm</var>.<var class="field">[[Intrinsics]]</var>.[[<emu-xref href="#sec-properties-of-the-function-prototype-object" id="_ref_4748"><a href="#sec-properties-of-the-function-prototype-object">%Function.prototype%</a></emu-xref>]].</li><li>Let <var>internalSlotsList</var> be a <emu-xref href="#sec-list-and-record-specification-type" id="_ref_4749"><a href="#sec-list-and-record-specification-type">List</a></emu-xref> containing the names of all the internal slots that <emu-xref href="#sec-built-in-function-objects" id="_ref_291"><a href="#sec-built-in-function-objects">10.3</a></emu-xref> requires for the built-in <emu-xref href="#function-object" id="_ref_4750"><a href="#function-object">function object</a></emu-xref> that is about to be created.</li><li>Append to <var>internalSlotsList</var> the elements of <var>additionalInternalSlotsList</var>.</li><li>Let <var>func</var> be a new built-in <emu-xref href="#function-object" id="_ref_4751"><a href="#function-object">function object</a></emu-xref> that, when called, performs the action described by <var>behaviour</var> using the provided arguments as the values of the corresponding parameters specified by <var>behaviour</var>. The new <emu-xref href="#function-object" id="_ref_4752"><a href="#function-object">function object</a></emu-xref> has internal slots whose names are the elements of <var>internalSlotsList</var>, and an <var class="field">[[InitialName]]</var> internal slot.</li><li>Set <var>func</var>.<var class="field">[[Prototype]]</var> to <var>prototype</var>.</li><li>Set <var>func</var>.<var class="field">[[Extensible]]</var> to <emu-val>true</emu-val>.</li><li>Set <var>func</var>.<var class="field">[[Realm]]</var> to <var>realm</var>.</li><li>Set <var>func</var>.<var class="field">[[InitialName]]</var> to <emu-val>null</emu-val>.</li><li>Perform <emu-xref aoid="SetFunctionLength" id="_ref_4753"><a href="#sec-setfunctionlength">SetFunctionLength</a></emu-xref>(<var>func</var>, <var>length</var>).</li><li>If <var>prefix</var> is not present, then<ol><li>Perform <emu-xref aoid="SetFunctionName" id="_ref_4754"><a href="#sec-setfunctionname">SetFunctionName</a></emu-xref>(<var>func</var>, <var>name</var>).</li></ol></li><li>Else,<ol><li>Perform <emu-xref aoid="SetFunctionName" id="_ref_4755"><a href="#sec-setfunctionname">SetFunctionName</a></emu-xref>(<var>func</var>, <var>name</var>, <var>prefix</var>).</li></ol></li><li>Return <var>func</var>.</li></ol></emu-alg>
<p>Each built-in function defined in this specification is created by calling the CreateBuiltinFunction abstract operation.</p>
</emu-clause>
Expand Down
2 changes: 1 addition & 1 deletion multipage/ordinary-and-exotic-objects-behaviours.html
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ <h1><span class="secnum">10.3.3</span> BuiltinCallOrConstruct ( <var>F</var>, <v

<emu-clause id="sec-createbuiltinfunction" type="abstract operation" aoid="CreateBuiltinFunction">
<h1><span class="secnum">10.3.4</span> CreateBuiltinFunction ( <var>behaviour</var>, <var>length</var>, <var>name</var>, <var>additionalInternalSlotsList</var> [ , <var>realm</var> [ , <var>prototype</var> [ , <var>prefix</var> ] ] ] )</h1>
<p>The abstract operation CreateBuiltinFunction takes arguments <var>behaviour</var> (an <emu-xref href="#sec-abstract-closure" id="_ref_4739"><a href="ecmascript-data-types-and-values.html#sec-abstract-closure">Abstract Closure</a></emu-xref>, a set of algorithm steps, or some other definition of a function's behaviour provided in this specification), <var>length</var> (a non-negative <emu-xref href="#integer" id="_ref_4740"><a href="notational-conventions.html#integer">integer</a></emu-xref> or +∞), <var>name</var> (a <emu-xref href="#sec-object-type" id="_ref_4741"><a href="ecmascript-data-types-and-values.html#sec-object-type">property key</a></emu-xref> or a <emu-xref href="#sec-private-names" id="_ref_4742"><a href="ecmascript-data-types-and-values.html#sec-private-names">Private Name</a></emu-xref>), and <var>additionalInternalSlotsList</var> (a <emu-xref href="#sec-list-and-record-specification-type" id="_ref_4743"><a href="ecmascript-data-types-and-values.html#sec-list-and-record-specification-type">List</a></emu-xref> of names of internal slots) and optional arguments <var>realm</var> (a <emu-xref href="#realm-record" id="_ref_4744"><a href="executable-code-and-execution-contexts.html#realm-record">Realm Record</a></emu-xref>), <var>prototype</var> (an Object or <emu-val>null</emu-val>), and <var>prefix</var> (a String) and returns a <emu-xref href="#function-object" id="_ref_4745"><a href="ecmascript-data-types-and-values.html#function-object">function object</a></emu-xref>. <var>additionalInternalSlotsList</var> contains the names of additional internal slots that must be defined as part of the object. This operation creates a built-in <emu-xref href="#function-object" id="_ref_4746"><a href="ecmascript-data-types-and-values.html#function-object">function object</a></emu-xref>. It performs the following steps when called:</p>
<p>The abstract operation CreateBuiltinFunction takes arguments <var>behaviour</var> (an <emu-xref href="#sec-abstract-closure" id="_ref_4739"><a href="ecmascript-data-types-and-values.html#sec-abstract-closure">Abstract Closure</a></emu-xref>, a set of algorithm steps, or some other definition of a function's behaviour provided in this specification), <var>length</var> (a non-negative <emu-xref href="#integer" id="_ref_4740"><a href="notational-conventions.html#integer">integer</a></emu-xref> or +∞), <var>name</var> (a <emu-xref href="#sec-object-type" id="_ref_4741"><a href="ecmascript-data-types-and-values.html#sec-object-type">property key</a></emu-xref> or a <emu-xref href="#sec-private-names" id="_ref_4742"><a href="ecmascript-data-types-and-values.html#sec-private-names">Private Name</a></emu-xref>), and <var>additionalInternalSlotsList</var> (a <emu-xref href="#sec-list-and-record-specification-type" id="_ref_4743"><a href="ecmascript-data-types-and-values.html#sec-list-and-record-specification-type">List</a></emu-xref> of names of internal slots) and optional arguments <var>realm</var> (a <emu-xref href="#realm-record" id="_ref_4744"><a href="executable-code-and-execution-contexts.html#realm-record">Realm Record</a></emu-xref>), <var>prototype</var> (an Object or <emu-val>null</emu-val>), and <var>prefix</var> (a String) and returns a built-in <emu-xref href="#function-object" id="_ref_4745"><a href="ecmascript-data-types-and-values.html#function-object">function object</a></emu-xref>. <var>additionalInternalSlotsList</var> contains the names of additional internal slots that must be defined as part of the object. This operation creates a built-in <emu-xref href="#function-object" id="_ref_4746"><a href="ecmascript-data-types-and-values.html#function-object">function object</a></emu-xref>. It performs the following steps when called:</p>
<emu-alg><ol><li>If <var>realm</var> is not present, set <var>realm</var> to <emu-xref href="#current-realm" id="_ref_4747"><a href="executable-code-and-execution-contexts.html#current-realm">the current Realm Record</a></emu-xref>.</li><li>If <var>prototype</var> is not present, set <var>prototype</var> to <var>realm</var>.<var class="field">[[Intrinsics]]</var>.[[<emu-xref href="#sec-properties-of-the-function-prototype-object" id="_ref_4748"><a href="fundamental-objects.html#sec-properties-of-the-function-prototype-object">%Function.prototype%</a></emu-xref>]].</li><li>Let <var>internalSlotsList</var> be a <emu-xref href="#sec-list-and-record-specification-type" id="_ref_4749"><a href="ecmascript-data-types-and-values.html#sec-list-and-record-specification-type">List</a></emu-xref> containing the names of all the internal slots that <emu-xref href="#sec-built-in-function-objects" id="_ref_291"><a href="ordinary-and-exotic-objects-behaviours.html#sec-built-in-function-objects">10.3</a></emu-xref> requires for the built-in <emu-xref href="#function-object" id="_ref_4750"><a href="ecmascript-data-types-and-values.html#function-object">function object</a></emu-xref> that is about to be created.</li><li>Append to <var>internalSlotsList</var> the elements of <var>additionalInternalSlotsList</var>.</li><li>Let <var>func</var> be a new built-in <emu-xref href="#function-object" id="_ref_4751"><a href="ecmascript-data-types-and-values.html#function-object">function object</a></emu-xref> that, when called, performs the action described by <var>behaviour</var> using the provided arguments as the values of the corresponding parameters specified by <var>behaviour</var>. The new <emu-xref href="#function-object" id="_ref_4752"><a href="ecmascript-data-types-and-values.html#function-object">function object</a></emu-xref> has internal slots whose names are the elements of <var>internalSlotsList</var>, and an <var class="field">[[InitialName]]</var> internal slot.</li><li>Set <var>func</var>.<var class="field">[[Prototype]]</var> to <var>prototype</var>.</li><li>Set <var>func</var>.<var class="field">[[Extensible]]</var> to <emu-val>true</emu-val>.</li><li>Set <var>func</var>.<var class="field">[[Realm]]</var> to <var>realm</var>.</li><li>Set <var>func</var>.<var class="field">[[InitialName]]</var> to <emu-val>null</emu-val>.</li><li>Perform <emu-xref aoid="SetFunctionLength" id="_ref_4753"><a href="ordinary-and-exotic-objects-behaviours.html#sec-setfunctionlength">SetFunctionLength</a></emu-xref>(<var>func</var>, <var>length</var>).</li><li>If <var>prefix</var> is not present, then<ol><li>Perform <emu-xref aoid="SetFunctionName" id="_ref_4754"><a href="ordinary-and-exotic-objects-behaviours.html#sec-setfunctionname">SetFunctionName</a></emu-xref>(<var>func</var>, <var>name</var>).</li></ol></li><li>Else,<ol><li>Perform <emu-xref aoid="SetFunctionName" id="_ref_4755"><a href="ordinary-and-exotic-objects-behaviours.html#sec-setfunctionname">SetFunctionName</a></emu-xref>(<var>func</var>, <var>name</var>, <var>prefix</var>).</li></ol></li><li>Return <var>func</var>.</li></ol></emu-alg>
<p>Each built-in function defined in this specification is created by calling the CreateBuiltinFunction abstract operation.</p>
</emu-clause>
Expand Down

0 comments on commit 0c2414e

Please sign in to comment.