Skip to content

Commit

Permalink
Normalize negative zero
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Aug 3, 2023
1 parent 43dfcf1 commit e68f5d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6408,6 +6408,9 @@ steps may throw an exception.
: If [=ECMAScript/Type=](|input|) is Number
::
1. If |input| is NaN then return invalid.

1. If |input| is -0 (negative zero), then return a new [=/key=] with [=key/type=] *number* and [=key/value=] 0 (zero).

1. Otherwise, return a new [=/key=] with
[=key/type=] *number* and [=key/value=]
|input|.
Expand Down Expand Up @@ -6784,6 +6787,7 @@ For the revision history of the second edition, see [that document's Revision Hi
* Added <a href="#accessibility">Accessibility considerations</a> section. ([Issue #327](https://github.com/w3c/IndexedDB/issues/327))
* Used [[infra]]'s list sorting definition. ([Issue #346](https://github.com/w3c/IndexedDB/issues/346))
* 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))
* Added normalization for negative zero for keys. ([Issue #375](https://github.com/w3c/IndexedDB/issues/375))

<!-- ============================================================ -->
# Acknowledgements # {#acknowledgements}
Expand Down

0 comments on commit e68f5d4

Please sign in to comment.