Skip to content

Commit c5c062a

Browse files
authored
Editorial: Update usage of CreateBuiltinFunction
ECMAScript updated the abstract operation to take length and name as arguments.
1 parent d0bd912 commit c5c062a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

index.bs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ urlPrefix: https://tc39.es/ecma262/; spec: ECMASCRIPT
5656
text: IsInteger; url: #sec-isinteger
5757
text: OrdinaryObjectCreate; url: #sec-ordinaryobjectcreate
5858
text: SameValue; url: #sec-samevalue
59-
text: SetFunctionLength; url: #sec-setfunctionlength
60-
text: SetFunctionName; url: #sec-setfunctionname
6159
text: Type; url: #sec-ecmascript-data-types-and-values
6260
text: TypeError; url: #sec-native-error-types-used-in-this-standard-typeerror; type: exception
6361
text: map; url: #sec-array.prototype.map; type: method; for: Array.prototype
@@ -5747,9 +5745,8 @@ in the constructor.
57475745

57485746
1. Let |steps| be the following steps, given |chunk|:
57495747
1. Return ? [$GetV$](|chunk|, "`byteLength`").
5750-
1. Let |F| be ! [$CreateBuiltinFunction$](|steps|, « », |globalObject|'s [=relevant Realm=]).
5751-
1. Perform ! [$SetFunctionName$](|F|, "`size`").
5752-
1. Perform ! [$SetFunctionLength$](|F|, 1).
5748+
1. Let |F| be ! [$CreateBuiltinFunction$](|steps|, 1, "`size`", « », |globalObject|'s [=relevant
5749+
Realm=]).
57535750
1. Set |globalObject|'s [=byte length queuing strategy size function=] to a {{Function}} that
57545751
represents a reference to |F|, with [=callback context=] equal to |globalObject|'s [=relevant
57555752
settings object=].
@@ -5862,9 +5859,8 @@ internal slot, storing the value given in the constructor.
58625859

58635860
1. Let |steps| be the following steps:
58645861
1. Return 1.
5865-
1. Let |F| be ! [$CreateBuiltinFunction$](|steps|, « », |globalObject|'s [=relevant Realm=]).
5866-
1. Perform ! [$SetFunctionName$](|F|, "`size`").
5867-
1. Perform ! [$SetFunctionLength$](|F|, 0).
5862+
1. Let |F| be ! [$CreateBuiltinFunction$](|steps|, 0, "`size`", « », |globalObject|'s [=relevant
5863+
Realm=]).
58685864
1. Set |globalObject|'s [=count queuing strategy size function=] to a {{Function}} that represents
58695865
a reference to |F|, with [=callback context=] equal to |globalObject|'s [=relevant settings
58705866
object=].

0 commit comments

Comments
 (0)