Skip to content

Commit

Permalink
Editorial: define boolean and integer types in terms of Infra
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Nov 20, 2024
1 parent 0675b96 commit 20f6212
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5805,80 +5805,71 @@ and more limited in how it was allowed to be used.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

There is no way to represent a constant {{USVString}}
value in IDL, although {{USVString}} [=dictionary member=] [=dictionary member/default values=]
Expand Down Expand Up @@ -6512,7 +6503,7 @@ data. The table below lists these types and the kind of buffer or view they repr
<td><dfn id="idl-BigUint64Array" interface>BigUint64Array</dfn>
<tr>
<td><dfn id="idl-Uint8ClampedArray" interface>Uint8ClampedArray</dfn>
<td>A view on to a [=buffer type=] instance that exposes it as an array of unsigned 8-bit integers with clamped conversions
<td>A view on to a [=buffer type=] instance that exposes it as an array of [=/8-bit unsigned integers=] with clamped conversions
<tr>
<td><dfn id="idl-Float16Array" interface>Float16Array</dfn>
<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]].
Expand Down Expand Up @@ -7530,7 +7521,7 @@ In effect, where <var ignore>x</var> is a Number value,
Note: Since there is only a single JavaScript <emu-val>NaN</emu-val> value,
it must be canonicalized to a particular single precision IEEE 754 NaN value. The NaN value
mentioned above is chosen simply because it is the quiet NaN with the lowest
value when its bit pattern is interpreted as an unsigned 32-bit integer.
value when its bit pattern is interpreted as an [=/32-bit unsigned integer=].

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

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

0 comments on commit 20f6212

Please sign in to comment.