Skip to content

Commit f10e812

Browse files
committed
Editorial: use the new signature of CreateBuiltinFunction
This was changed in tc39/ecma262#1101.
1 parent 7fdbf9d commit f10e812

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

index.bs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10711,7 +10711,7 @@ the <code>typeof</code> operator will return "function" when applied to an inter
1071110711
1. Let |constructorProto| be |realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]].
1071210712
1. If |I| inherits from some other interface |P|,
1071310713
then set |constructorProto| to the [=interface object=] of |P| in |realm|.
10714-
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|, |steps|, |constructorProto|).
10714+
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|, |constructorProto|).
1071510715
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |id|).
1071610716
1. Let |length| be 0.
1071710717
1. If |I| was declared with a [{{Constructor}}] [=extended attribute=], then
@@ -10765,8 +10765,7 @@ This object's relevant [=Realm=] must be the same as that of the [=named constru
1076510765
|constructor| with |values| as the argument values.
1076610766
1. Return the result of [=converted to an ECMAScript value|converting=]
1076710767
|R| to an ECMAScript [=interface type=] value |I|.
10768-
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|, |steps|,
10769-
|realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]]).
10768+
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
1077010769
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |id|).
1077110770
1. Initialize |S| to the [=effective overload set=]
1077210771
for constructors with identifier |id| on [=interface=] |I|
@@ -10913,7 +10912,7 @@ when applied to a [=legacy callback interface object=].
1091310912

1091410913
1. Let |steps| be the following steps:
1091510914
1. [=ECMAScript/Throw=] a {{ECMAScript/TypeError}}.
10916-
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|, |steps|, |realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]]).
10915+
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
1091710916
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |id|).
1091810917
1. Perform [=!=] <a abstract-op>SetFunctionLength</a>(|F|, 0).
1091910918
1. [=Define the constants=] of |interface| on |F| given |realm|.
@@ -11147,8 +11146,7 @@ in which case they are exposed on every object that implements the interface.
1114711146
1. If |attribute|'s type is a [=promise type=], then return
1114811147
[=!=] <a abstract-op>Call</a>({{%Promise_reject%}}, {{%Promise%}}, «|E|»).
1114911148
1. Otherwise, end these steps and allow the exception to propagate.
11150-
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|,
11151-
|steps|, |realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]]).
11149+
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
1115211150
1. Let |name| be the string "<code>get </code>" prepended to |attribute|'s [=identifier=].
1115311151
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |name|).
1115411152
1. Perform [=!=] <a abstract-op>SetFunctionLength</a>(|F|, 0).
@@ -11222,8 +11220,7 @@ in which case they are exposed on every object that implements the interface.
1122211220
1. Perform the actions listed in the description of |attribute| that occur on setting, on
1122311221
|O| if |O| is not <emu-val>null</emu-val>.
1122411222
1. Return <emu-val>undefined</emu-val>
11225-
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|,
11226-
|steps|, |realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]]).
11223+
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
1122711224
1. Let |name| be the string "<code>set </code>" prepended to |id|.
1122811225
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |name|).
1122911226
1. Perform [=!=] <a abstract-op>SetFunctionLength</a>(|F|, 1).
@@ -11339,8 +11336,7 @@ in which case they are exposed on every object that implements the interface.
1133911336
that is a [=promise type=], then return
1134011337
[=!=] <a abstract-op>Call</a>({{%Promise_reject%}}, {{%Promise%}}, «|E|»).
1134111338
1. Otherwise, end these steps and allow the exception to propagate.
11342-
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|,
11343-
|steps|, |realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]]).
11339+
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
1134411340
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |id|).
1134511341
1. Let |S| be the [=effective overload set=] for [=regular operations=] (if |op| is a regular
1134611342
operation) or for [=static operations=] (if |op| is a static operation) with [=identifier=] |id|

0 commit comments

Comments
 (0)