Skip to content

Commit 2adf728

Browse files
authored
fix: Restrict range of Integer to be within maximum safe integer (#1974)
* fix: Restrict range of `Integer` Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> * remove ref to one "maximum safe integer" Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> * mention maximum safe inteer first Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> * Integer instead integer Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> * Swap order of narratives Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> --------- Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
1 parent 14b5637 commit 2adf728

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎index.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ <h2>Terminology</h2>
190190
<a href=https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_15>section 4.15</a> (IEEE Std 1003.1).
191191

192192
<p>
193-
An <dfn>integer</dfn> is a <a>Number</a> that is unchanged
194-
under the <a>ToInteger</a> operation.
193+
An <dfn>Integer</dfn> is a <a>Number</a> that is unchanged under the <a>ToInteger</a> operation and
194+
greater than or equal to -<a>maximum safe integer</a> and
195+
less than or equal to <a>maximum safe integer</a>.
195196

196197
<p>
197198
The <dfn>initial value</dfn> of an ECMAScript property
@@ -7604,9 +7605,8 @@ <h3><dfn data-lt="adding a cookie">Add Cookie</dfn></h3>
76047605

76057606
<li><p>If <a>cookie name</a> or <a>cookie value</a> is <a><code>null</code></a>,
76067607
<a>cookie secure only</a> or <a>cookie HTTP only</a> are not boolean types,
7607-
or <a>cookie expiry time</a> is not an integer type, or it less than 0 or greater than
7608-
the <a>maximum safe integer</a>, return <a>error</a> with <a>error
7609-
code</a> <a>invalid argument</a>.
7608+
or <a>cookie expiry time</a> is not an <a>Integer</a> or less than 0,
7609+
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
76107610

76117611
<li><p>If <var>session</var>&apos;s <a>current browsing
76127612
context</a>&apos;s <a>document element</a> is

0 commit comments

Comments
 (0)