Skip to content

Commit 9e107e0

Browse files
authored
Rename "addressType" to "address" in the JS API (WebAssembly#92)
1 parent 4056ff9 commit 9e107e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

document/js-api/index.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ Note: The use of this synchronous API is discouraged, as some implementations so
679679
dictionary MemoryDescriptor {
680680
required AddressValue initial;
681681
AddressValue maximum;
682-
AddressType addressType;
682+
AddressType address;
683683
};
684684

685685
[LegacyNamespace=WebAssembly, Exposed=*]
@@ -748,7 +748,7 @@ which can be simultaneously referenced by multiple {{Instance}} objects. Each
748748

749749
<div algorithm>
750750
The <dfn constructor for="Memory">Memory(|descriptor|)</dfn> constructor, when invoked, performs the following steps:
751-
1. If |descriptor|["addressType"] [=map/exists=], let |addrtype| be |descriptor|["addressType"]; otherwise, let |addrtype| be "i32".
751+
1. If |descriptor|["address"] [=map/exists=], let |addrtype| be |descriptor|["address"]; otherwise, let |addrtype| be "i32".
752752
1. Let |initial| be [=?=] [=AddressValueToU64=](|descriptor|["initial"], |addrtype|).
753753
1. If |descriptor|["maximum"] [=map/exists=], let |maximum| be [=?=] [=AddressValueToU64=](|descriptor|["maximum"], |addrtype|); otherwise, let |maximum| be empty.
754754
1. If |maximum| is not empty and |maximum| &lt; |initial|, throw a {{RangeError}} exception.
@@ -875,7 +875,7 @@ dictionary TableDescriptor {
875875
required TableKind element;
876876
required AddressValue initial;
877877
AddressValue maximum;
878-
AddressType addressType;
878+
AddressType address;
879879
};
880880

881881
[LegacyNamespace=WebAssembly, Exposed=*]
@@ -915,7 +915,7 @@ Each {{Table}} object has a \[[Table]] internal slot, which is a [=table address
915915
1. Let |elementtype| be [=ToValueType=](|descriptor|["element"]).
916916
1. If |elementtype| is not a [=reftype=],
917917
1. [=Throw=] a {{TypeError}} exception.
918-
1. If |descriptor|["addressType"] [=map/exists=], let |addrtype| be |descriptor|["addressType"]; otherwise, let |addrtype| be "i32".
918+
1. If |descriptor|["address"] [=map/exists=], let |addrtype| be |descriptor|["address"]; otherwise, let |addrtype| be "i32".
919919
1. Let |initial| be [=?=] [=AddressValueToU64=](|descriptor|["initial"], |addrtype|).
920920
1. If |descriptor|["maximum"] [=map/exists=], let |maximum| be [=?=] [=AddressValueToU64=](|descriptor|["maximum"], |addrtype|); otherwise, let |maximum| be empty.
921921
1. If |maximum| is not empty and |maximum| &lt; |initial|, throw a {{RangeError}} exception.

0 commit comments

Comments
 (0)