Skip to content

Commit

Permalink
Editorial: use the new signature of CreateBuiltinFunction
Browse files Browse the repository at this point in the history
This was changed in tc39/ecma262#1101.
  • Loading branch information
Ms2ger committed Feb 11, 2019
1 parent 7fdbf9d commit f10e812
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions index.bs
Expand Up @@ -10711,7 +10711,7 @@ the <code>typeof</code> operator will return "function" when applied to an inter
1. Let |constructorProto| be |realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]].
1. If |I| inherits from some other interface |P|,
then set |constructorProto| to the [=interface object=] of |P| in |realm|.
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|, |steps|, |constructorProto|).
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|, |constructorProto|).
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |id|).
1. Let |length| be 0.
1. If |I| was declared with a [{{Constructor}}] [=extended attribute=], then
Expand Down Expand Up @@ -10765,8 +10765,7 @@ This object's relevant [=Realm=] must be the same as that of the [=named constru
|constructor| with |values| as the argument values.
1. Return the result of [=converted to an ECMAScript value|converting=]
|R| to an ECMAScript [=interface type=] value |I|.
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|, |steps|,
|realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]]).
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |id|).
1. Initialize |S| to the [=effective overload set=]
for constructors with identifier |id| on [=interface=] |I|
Expand Down Expand Up @@ -10913,7 +10912,7 @@ when applied to a [=legacy callback interface object=].

1. Let |steps| be the following steps:
1. [=ECMAScript/Throw=] a {{ECMAScript/TypeError}}.
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|, |steps|, |realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]]).
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |id|).
1. Perform [=!=] <a abstract-op>SetFunctionLength</a>(|F|, 0).
1. [=Define the constants=] of |interface| on |F| given |realm|.
Expand Down Expand Up @@ -11147,8 +11146,7 @@ in which case they are exposed on every object that implements the interface.
1. If |attribute|'s type is a [=promise type=], then return
[=!=] <a abstract-op>Call</a>({{%Promise_reject%}}, {{%Promise%}}, «|E|»).
1. Otherwise, end these steps and allow the exception to propagate.
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|,
|steps|, |realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]]).
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
1. Let |name| be the string "<code>get </code>" prepended to |attribute|'s [=identifier=].
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |name|).
1. Perform [=!=] <a abstract-op>SetFunctionLength</a>(|F|, 0).
Expand Down Expand Up @@ -11222,8 +11220,7 @@ in which case they are exposed on every object that implements the interface.
1. Perform the actions listed in the description of |attribute| that occur on setting, on
|O| if |O| is not <emu-val>null</emu-val>.
1. Return <emu-val>undefined</emu-val>
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|,
|steps|, |realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]]).
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
1. Let |name| be the string "<code>set </code>" prepended to |id|.
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |name|).
1. Perform [=!=] <a abstract-op>SetFunctionLength</a>(|F|, 1).
Expand Down Expand Up @@ -11339,8 +11336,7 @@ in which case they are exposed on every object that implements the interface.
that is a [=promise type=], then return
[=!=] <a abstract-op>Call</a>({{%Promise_reject%}}, {{%Promise%}}, «|E|»).
1. Otherwise, end these steps and allow the exception to propagate.
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|realm|,
|steps|, |realm|.\[[Intrinsics]].[[{{%FunctionPrototype%}}]]).
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |id|).
1. Let |S| be the [=effective overload set=] for [=regular operations=] (if |op| is a regular
operation) or for [=static operations=] (if |op| is a static operation) with [=identifier=] |id|
Expand Down

0 comments on commit f10e812

Please sign in to comment.