From a7dc7b6102c2a180854906ee8ad54dd2793f17c8 Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Mon, 21 Oct 2024 11:44:18 +0200 Subject: [PATCH] Rename "addressType" to "address" in the JS API --- document/js-api/index.bs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/document/js-api/index.bs b/document/js-api/index.bs index 65233ca9..dc8f557e 100644 --- a/document/js-api/index.bs +++ b/document/js-api/index.bs @@ -679,7 +679,7 @@ Note: The use of this synchronous API is discouraged, as some implementations so dictionary MemoryDescriptor { required AddressValue initial; AddressValue maximum; - AddressType addressType; + AddressType address; }; [LegacyNamespace=WebAssembly, Exposed=*] @@ -748,7 +748,7 @@ which can be simultaneously referenced by multiple {{Instance}} objects. Each
The Memory(|descriptor|) constructor, when invoked, performs the following steps: - 1. If |descriptor|["addressType"] [=map/exists=], let |addrtype| be |descriptor|["addressType"]; otherwise, let |addrtype| be "i32". + 1. If |descriptor|["address"] [=map/exists=], let |addrtype| be |descriptor|["address"]; otherwise, let |addrtype| be "i32". 1. Let |initial| be [=?=] [=AddressValueToU64=](|descriptor|["initial"], |addrtype|). 1. If |descriptor|["maximum"] [=map/exists=], let |maximum| be [=?=] [=AddressValueToU64=](|descriptor|["maximum"], |addrtype|); otherwise, let |maximum| be empty. 1. If |maximum| is not empty and |maximum| < |initial|, throw a {{RangeError}} exception. @@ -875,7 +875,7 @@ dictionary TableDescriptor { required TableKind element; required AddressValue initial; AddressValue maximum; - AddressType addressType; + AddressType address; }; [LegacyNamespace=WebAssembly, Exposed=*] @@ -915,7 +915,7 @@ Each {{Table}} object has a \[[Table]] internal slot, which is a [=table address 1. Let |elementtype| be [=ToValueType=](|descriptor|["element"]). 1. If |elementtype| is not a [=reftype=], 1. [=Throw=] a {{TypeError}} exception. - 1. If |descriptor|["addressType"] [=map/exists=], let |addrtype| be |descriptor|["addressType"]; otherwise, let |addrtype| be "i32". + 1. If |descriptor|["address"] [=map/exists=], let |addrtype| be |descriptor|["address"]; otherwise, let |addrtype| be "i32". 1. Let |initial| be [=?=] [=AddressValueToU64=](|descriptor|["initial"], |addrtype|). 1. If |descriptor|["maximum"] [=map/exists=], let |maximum| be [=?=] [=AddressValueToU64=](|descriptor|["maximum"], |addrtype|); otherwise, let |maximum| be empty. 1. If |maximum| is not empty and |maximum| < |initial|, throw a {{RangeError}} exception.