Skip to content

Commit 20f6212

Browse files
committed
Editorial: define boolean and integer types in terms of Infra
1 parent 0675b96 commit 20f6212

File tree

1 file changed

+14
-23
lines changed

1 file changed

+14
-23
lines changed

index.bs

+14-23
Original file line numberDiff line numberDiff line change
@@ -5805,80 +5805,71 @@ and more limited in how it was allowed to be used.
58055805

58065806
<h4 oldids="dom-boolean" id="idl-boolean" interface>boolean</h4>
58075807

5808-
The {{boolean}} type has two values:
5809-
<code class="idl">true</code> and <code class="idl">false</code>.
5808+
The {{boolean}} type corresponds to [=/booleans=].
58105809

58115810
{{boolean}} constant values in IDL are
58125811
represented with the <emu-t>true</emu-t> and
58135812
<emu-t>false</emu-t> tokens.
58145813

58155814
<h4 oldids="dom-byte" id="idl-byte" interface>byte</h4>
58165815

5817-
The {{byte}} type is a signed integer
5818-
type that has values in the range [−128, 127].
5816+
The {{byte}} type corresponds to [=/8-bit signed integers=].
58195817

58205818
{{byte}} constant values in IDL are
58215819
represented with <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t>
58225820
tokens.
58235821

58245822
<h4 oldids="dom-octet" id="idl-octet" interface>octet</h4>
58255823

5826-
The {{octet}} type is an unsigned integer
5827-
type that has values in the range [0, 255].
5824+
The {{octet}} type corresponds to [=/8-bit unsigned integers=].
58285825

58295826
{{octet}} constant values in IDL are
58305827
represented with <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t>
58315828
tokens.
58325829

58335830
<h4 oldids="dom-short" id="idl-short" interface>short</h4>
58345831

5835-
The {{short}} type is a signed integer
5836-
type that has values in the range [−32768, 32767].
5832+
The {{short}} type corresponds to [=/16-bit signed integers=].
58375833

58385834
{{short}} constant values in IDL are
58395835
represented with <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t>
58405836
tokens.
58415837

58425838
<h4 oldids="dom-unsignedshort" id="idl-unsigned-short" interface>unsigned short</h4>
58435839

5844-
The {{unsigned short}} type is an unsigned integer
5845-
type that has values in the range [0, 65535].
5840+
The {{unsigned short}} type corresponds to [=/16-bit unsigned integers=].
58465841

58475842
{{unsigned short}} constant values in IDL are
58485843
represented with <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t>
58495844
tokens.
58505845

58515846
<h4 oldids="dom-long" id="idl-long" interface>long</h4>
58525847

5853-
The {{long}} type is a signed integer
5854-
type that has values in the range [−2147483648, 2147483647].
5848+
The {{long}} type corresponds to [=/32-bit signed integers=].
58555849

58565850
{{long}} constant values in IDL are
58575851
represented with <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t>
58585852
tokens.
58595853

58605854
<h4 oldids="dom-unsignedlong" id="idl-unsigned-long" interface>unsigned long</h4>
58615855

5862-
The {{unsigned long}} type is an unsigned integer
5863-
type that has values in the range [0, 4294967295].
5856+
The {{unsigned long}} type corresponds to [=/32-bit unsigned integers=].
58645857

58655858
{{unsigned long}} constant values in IDL are
58665859
represented with <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t>
58675860
tokens.
58685861

58695862
<h4 oldids="dom-longlong" id="idl-long-long" interface>long long</h4>
58705863

5871-
The {{long long}} type is a signed integer
5872-
type that has values in the range [−9223372036854775808, 9223372036854775807].
5864+
The {{long long}} type corresponds to [=/64-bit signed integers=].
58735865

58745866
{{long long}} constant values in IDL are
58755867
represented with <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t>
58765868
tokens.
58775869

58785870
<h4 oldids="dom-unsignedlonglong" id="idl-unsigned-long-long" interface>unsigned long long</h4>
58795871

5880-
The {{unsigned long long}} type is an unsigned integer
5881-
type that has values in the range [0, 18446744073709551615].
5872+
The {{unsigned long long}} type corresponds to [=/64-bit unsigned integers=].
58825873

58835874
{{unsigned long long}} constant values in IDL are
58845875
represented with <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t>
@@ -5985,8 +5976,8 @@ can be set to [=value of string literal tokens|the value=] of a
59855976
The {{USVString}} type
59865977
corresponds to [=scalar value strings=].
59875978
Depending on the context,
5988-
these can be treated as sequences of either 16-bit unsigned integer [=code units=]
5989-
or [=scalar values=].
5979+
these can be treated as sequences of [=/code units=]
5980+
or [=/scalar values=].
59905981

59915982
There is no way to represent a constant {{USVString}}
59925983
value in IDL, although {{USVString}} [=dictionary member=] [=dictionary member/default values=]
@@ -6512,7 +6503,7 @@ data. The table below lists these types and the kind of buffer or view they repr
65126503
<td><dfn id="idl-BigUint64Array" interface>BigUint64Array</dfn>
65136504
<tr>
65146505
<td><dfn id="idl-Uint8ClampedArray" interface>Uint8ClampedArray</dfn>
6515-
<td>A view on to a [=buffer type=] instance that exposes it as an array of unsigned 8-bit integers with clamped conversions
6506+
<td>A view on to a [=buffer type=] instance that exposes it as an array of [=/8-bit unsigned integers=] with clamped conversions
65166507
<tr>
65176508
<td><dfn id="idl-Float16Array" interface>Float16Array</dfn>
65186509
<td rowspan=3>A view on to a [=buffer type=] instance that exposes it as an array of IEEE 754 floating point numbers of the given size in bits; Float16Array corresponds to the ECMAScript proposal [[PROPOSAL-FLOAT16ARRAY]].
@@ -7530,7 +7521,7 @@ In effect, where <var ignore>x</var> is a Number value,
75307521
Note: Since there is only a single JavaScript <emu-val>NaN</emu-val> value,
75317522
it must be canonicalized to a particular single precision IEEE 754 NaN value. The NaN value
75327523
mentioned above is chosen simply because it is the quiet NaN with the lowest
7533-
value when its bit pattern is interpreted as an unsigned 32-bit integer.
7524+
value when its bit pattern is interpreted as an [=/32-bit unsigned integer=].
75347525

75357526
<div id="unrestricted-float-to-js" algorithm="convert an unrestricted float to a JavaScript value">
75367527
<span id="unrestricted-float-to-es"></span>
@@ -7590,7 +7581,7 @@ value when its bit pattern is interpreted as an unsigned 32-bit integer.
75907581
Note: Since there is only a single JavaScript <emu-val>NaN</emu-val> value,
75917582
it must be canonicalized to a particular double precision IEEE 754 NaN value. The NaN value
75927583
mentioned above is chosen simply because it is the quiet NaN with the lowest
7593-
value when its bit pattern is interpreted as an unsigned 64-bit integer.
7584+
value when its bit pattern is interpreted as an [=/64-bit unsigned integer=].
75947585

75957586
<div id="unrestricted-double-to-js" algorithm="convert an unrestricted double to a JavaScript value">
75967587
<span id="unrestricted-double-to-es"></span>

0 commit comments

Comments
 (0)