From 2a2a7ca58303535616d65a8b8b26bbc2833af28f Mon Sep 17 00:00:00 2001 From: Ilya Rezvov Date: Mon, 16 Oct 2023 10:07:48 +0200 Subject: [PATCH] Reference TC39 JSFunction interface instead of using a callback workaround --- document/js-api/index.bs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/document/js-api/index.bs b/document/js-api/index.bs index 8ded42c7..5e39a09d 100644 --- a/document/js-api/index.bs +++ b/document/js-api/index.bs @@ -28,6 +28,7 @@ Prepare For TR: true urlPrefix: https://tc39.github.io/ecma262/; spec: ECMASCRIPT type: interface; for: ECMAScript text: ArrayBuffer; url: sec-arraybuffer-objects + text: JSFunction; url: sec-function-objects type: exception; for: ECMAScript text: Error; url: sec-error-objects text: NativeError; url: sec-nativeerror-constructors @@ -1106,8 +1107,6 @@ The type() method steps are:

Exported Functions

-callback JSFunction = any (any... arguments);
-
 dictionary FunctionType {
   required sequence<ValueType> parameters;
   required sequence<ValueType> results;