From 750835c53fdbbd564168a14a952d779dcf95dcd9 Mon Sep 17 00:00:00 2001
From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
Date: Thu, 6 Aug 2020 20:10:00 +0200
Subject: [PATCH] =?UTF-8?q?Editorial:=20Fix=C2=A0`internalSlotsList`=C2=A0?=
=?UTF-8?q?parameter=20of=C2=A0`CreateBuiltinFunction`?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
spec.html | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/spec.html b/spec.html
index a706dd62e5a..a638bdcb69f 100644
--- a/spec.html
+++ b/spec.html
@@ -9049,17 +9049,22 @@
[[Construct]] ( _argumentsList_, _newTarget_ )
- CreateBuiltinFunction ( _steps_, _internalSlotsList_ [ , _realm_ [ , _prototype_ ] ] )
- The abstract operation CreateBuiltinFunction takes arguments _steps_ and _internalSlotsList_ (a List of names of internal slots) and optional arguments _realm_ and _prototype_. _internalSlotsList_ contains the names of additional internal slots that must be defined as part of the object. This operation creates a built-in function object. It performs the following steps when called:
+ CreateBuiltinFunction ( _steps_, _additionalInternalSlotsList_ [ , _realm_ [ , _prototype_ ] ] )
+ The abstract operation CreateBuiltinFunction takes arguments _steps_ and optional arguments _additionalInternalSlotsList_ (a List of internal slot names), _realm_, and _prototype_. _additionalInternalSlotsList_ contains the names of additional internal slots that must be defined as part of the object. This operation creates a built-in function object. It performs the following steps when called:
1. Assert: _steps_ is either a set of algorithm steps or other definition of a function's behaviour provided in this specification.
1. If _realm_ is not present, set _realm_ to the current Realm Record.
1. Assert: _realm_ is a Realm Record.
1. If _prototype_ is not present, set _prototype_ to _realm_.[[Intrinsics]].[[%Function.prototype%]].
- 1. Let _func_ be a new built-in function object that when called performs the action described by _steps_. The new function object has internal slots whose names are the elements of _internalSlotsList_, and an [[InitialName]] internal slot.
- 1. Set _func_.[[Realm]] to _realm_.
- 1. Set _func_.[[Prototype]] to _prototype_.
+ 1. If the built-in function object is implemented using ECMAScript code,
+ 1. Let _internalSlotsList_ be the internal slots listed in .
+ 1. Otherwise, let _internalSlotsList_ be « [[Prototype]], [[Extensible]], [[Realm]], [[ScriptOrModule]] ».
+ 1. Append [[InitialName]] to _internalSlotsList_.
+ 1. Append each element of _additionalInternalSlotsList_ to _internalSlotsList_.
+ 1. Let _func_ be a new built-in function object that when called performs the action described by _steps_. The new function object has internal slots whose names are the elements of _internalSlotsList_.
1. Set _func_.[[Extensible]] to *true*.
+ 1. Set _func_.[[Prototype]] to _prototype_.
+ 1. Set _func_.[[Realm]] to _realm_.
1. Set _func_.[[ScriptOrModule]] to *null*.
1. Set _func_.[[InitialName]] to *null*.
1. Return _func_.