From a51b6749673d9cb80348218f743d42b9de8b5a0e Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 19 Aug 2021 09:25:45 +0200 Subject: [PATCH] [js-api] Update CreateBuiltinFunction call for ES changes. (#1337) See . --- document/js-api/index.bs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/document/js-api/index.bs b/document/js-api/index.bs index ff36c930c..e3184c2d8 100644 --- a/document/js-api/index.bs +++ b/document/js-api/index.bs @@ -52,7 +52,6 @@ urlPrefix: https://tc39.github.io/ecma262/; spec: ECMASCRIPT url: sec-well-known-intrinsic-objects text: %ErrorPrototype% text: %ObjectPrototype%; url: sec-properties-of-the-object-prototype-object - text: %FunctionPrototype%; url: sec-properties-of-the-function-prototype-object text: %Promise%; url: sec-promise-constructor text: Property Descriptor; url: sec-property-descriptor-specification-type text: array index; url: sec-array-exotic-objects @@ -978,15 +977,13 @@ This slot holds a [=function address=] relative to the [=surrounding agent=]'s [ 1. Return |map|[|funcaddr|]. 1. Let |steps| be "[=call an Exported Function|call the Exported Function=] |funcaddr| with arguments." 1. Let |realm| be the [=current Realm=]. - 1. Let |function| be [=CreateBuiltinFunction=](|realm|, |steps|, [=%FunctionPrototype%=], « \[[FunctionAddress]] »). - 1. Set |function|.\[[FunctionAddress]] to |funcaddr|. 1. Let |store| be the [=surrounding agent=]'s [=associated store=]. 1. Let |functype| be [=func_type=](|store|, |funcaddr|). 1. Let [|paramTypes|] → [resultTypes] be |functype|. 1. Let |arity| be |paramTypes|'s [=list/size=]. - 1. Perform ! [=SetFunctionLength=](|function|, |arity|). 1. Let |name| be the [=name of the WebAssembly function=] |funcaddr|. - 1. Perform ! [=SetFunctionName=](|function|, |name|). + 1. Let |function| be [=!=] [=CreateBuiltinFunction=](|steps|, |arity|, |name|, « \[[FunctionAddress]] », |realm|). + 1. Set |function|.\[[FunctionAddress]] to |funcaddr|. 1. [=map/Set=] |map|[|funcaddr|] to |function|. 1. Return |function|.