Skip to content

Commit e68f5d4

Browse files
Normalize negative zero
1 parent 43dfcf1 commit e68f5d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.bs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6408,6 +6408,9 @@ steps may throw an exception.
64086408
: If [=ECMAScript/Type=](|input|) is Number
64096409
::
64106410
1. If |input| is NaN then return invalid.
6411+
6412+
1. If |input| is -0 (negative zero), then return a new [=/key=] with [=key/type=] *number* and [=key/value=] 0 (zero).
6413+
64116414
1. Otherwise, return a new [=/key=] with
64126415
[=key/type=] *number* and [=key/value=]
64136416
|input|.
@@ -6784,6 +6787,7 @@ For the revision history of the second edition, see [that document's Revision Hi
67846787
* Added <a href="#accessibility">Accessibility considerations</a> section. ([Issue #327](https://github.com/w3c/IndexedDB/issues/327))
67856788
* Used [[infra]]'s list sorting definition. ([Issue #346](https://github.com/w3c/IndexedDB/issues/346))
67866789
* Added a definition for [=transaction/live=] transactions, and renamed "run an upgrade transaction" to [=/upgrade a database=], to disambiguate "running". ([Issue #408](https://github.com/w3c/IndexedDB/issues/408))
6790+
* Added normalization for negative zero for keys. ([Issue #375](https://github.com/w3c/IndexedDB/issues/375))
67876791

67886792
<!-- ============================================================ -->
67896793
# Acknowledgements # {#acknowledgements}

0 commit comments

Comments
 (0)