@@ -52,7 +52,6 @@ urlPrefix: https://tc39.github.io/ecma262/; spec: ECMASCRIPT
52
52
url: sec-well-known-intrinsic-objects
53
53
text: %ErrorPrototype%
54
54
text: %ObjectPrototype%; url: sec-properties-of-the-object-prototype-object
55
- text: %FunctionPrototype%; url: sec-properties-of-the-function-prototype-object
56
55
text: %Promise%; url: sec-promise-constructor
57
56
text: Property Descriptor; url: sec-property-descriptor-specification-type
58
57
text: array index; url: sec-array-exotic-objects
@@ -978,15 +977,13 @@ This slot holds a [=function address=] relative to the [=surrounding agent=]'s [
978
977
1. Return |map|[|funcaddr|] .
979
978
1. Let |steps| be "[=call an Exported Function|call the Exported Function=] |funcaddr| with arguments."
980
979
1. Let |realm| be the [=current Realm=] .
981
- 1. Let |function| be [=CreateBuiltinFunction=] (|realm|, |steps|, [=%FunctionPrototype%=] , « \[[FunctionAddress]] »).
982
- 1. Set |function|.\[[FunctionAddress]] to |funcaddr|.
983
980
1. Let |store| be the [=surrounding agent=] 's [=associated store=] .
984
981
1. Let |functype| be [=func_type=] (|store|, |funcaddr|).
985
982
1. Let [|paramTypes|] → [<var ignore>resultTypes</var>] be |functype|.
986
983
1. Let |arity| be |paramTypes|'s [=list/size=] .
987
- 1. Perform ! [=SetFunctionLength=] (|function|, |arity|).
988
984
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|.
990
987
1. [=map/Set=] |map|[|funcaddr|] to |function|.
991
988
1. Return |function|.
992
989
</div>
0 commit comments