Skip to content

Commit a51b674

Browse files
Ms2gerfgmccabe
authored andcommitted
[js-api] Update CreateBuiltinFunction call for ES changes. (#1337)
See <tc39/ecma262#2116>.
1 parent 227aa96 commit a51b674

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

document/js-api/index.bs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ urlPrefix: https://tc39.github.io/ecma262/; spec: ECMASCRIPT
5252
url: sec-well-known-intrinsic-objects
5353
text: %ErrorPrototype%
5454
text: %ObjectPrototype%; url: sec-properties-of-the-object-prototype-object
55-
text: %FunctionPrototype%; url: sec-properties-of-the-function-prototype-object
5655
text: %Promise%; url: sec-promise-constructor
5756
text: Property Descriptor; url: sec-property-descriptor-specification-type
5857
text: array index; url: sec-array-exotic-objects
@@ -978,15 +977,13 @@ This slot holds a [=function address=] relative to the [=surrounding agent=]'s [
978977
1. Return |map|[|funcaddr|].
979978
1. Let |steps| be "[=call an Exported Function|call the Exported Function=] |funcaddr| with arguments."
980979
1. Let |realm| be the [=current Realm=].
981-
1. Let |function| be [=CreateBuiltinFunction=](|realm|, |steps|, [=%FunctionPrototype%=], &laquo; \[[FunctionAddress]] &raquo;).
982-
1. Set |function|.\[[FunctionAddress]] to |funcaddr|.
983980
1. Let |store| be the [=surrounding agent=]'s [=associated store=].
984981
1. Let |functype| be [=func_type=](|store|, |funcaddr|).
985982
1. Let [|paramTypes|][<var ignore>resultTypes</var>] be |functype|.
986983
1. Let |arity| be |paramTypes|'s [=list/size=].
987-
1. Perform ! [=SetFunctionLength=](|function|, |arity|).
988984
1. Let |name| be the [=name of the WebAssembly function=] |funcaddr|.
989-
1. Perform ! [=SetFunctionName=](|function|, |name|).
985+
1. Let |function| be [=!=] [=CreateBuiltinFunction=](|steps|, |arity|, |name|, « \[[FunctionAddress]] », |realm|).
986+
1. Set |function|.\[[FunctionAddress]] to |funcaddr|.
990987
1. [=map/Set=] |map|[|funcaddr|] to |function|.
991988
1. Return |function|.
992989
</div>

0 commit comments

Comments
 (0)