From 720b5a337d40cfaf1bd52db2a332aca26d70adbe Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Mon, 21 Jun 2021 16:30:00 +0200 Subject: [PATCH] =?UTF-8?q?Editorial:=20Use=C2=A0WebIDL=20`constructor`?= =?UTF-8?q?=C2=A0operation=20in=C2=A0`Overview.md`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proposals/js-types/Overview.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/proposals/js-types/Overview.md b/proposals/js-types/Overview.md index 28a040be..cc1cc908 100644 --- a/proposals/js-types/Overview.md +++ b/proposals/js-types/Overview.md @@ -121,17 +121,17 @@ Types can be queried by adding the following methods to the API. * Overload constructor [Memory](https://webassembly.github.io/spec/js-api/index.html#memories) (see above) ```WebIDL - Constructor(MemoryType or InitialMemoryType type) + constructor(MemoryType or InitialMemoryType type); ``` * Overload constructor [Table](https://webassembly.github.io/spec/js-api/index.html#tables) (see above) ```WebIDL - Constructor(TableType or InitialTableType type) + constructor(TableType or InitialTableType type); ``` * Adjust constructor [Global](https://github.com/WebAssembly/mutable-global/blob/master/proposals/mutable-global/Overview.md#webassemblyglobal-objects) to accept a GlobalType and its initialisation value separately: ```WebIDL - Constructor(GlobalType type, any value) + constructor(GlobalType type, any value); ``` @@ -151,8 +151,9 @@ Concretely, the change is the following: * Introduce a new class `WebAssembly.Function` that is a subclass of `Function` as follows ```WebIDL - [LegacyNamespace=WebAssembly, Constructor(FunctionType type, function func), Exposed=(Window,Worker,Worklet)] + [LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)] interface Function : global.Function { + constructor(FunctionType type, function func); FunctionType type(); }; ```