Skip to content

Commit

Permalink
Normalize negative zero
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Jul 6, 2022
1 parent 381f97e commit 510fee3
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 @@ -6430,6 +6430,9 @@ steps may throw an exception.
: If [=/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 @@ -6805,6 +6808,7 @@ For the revision history of the second edition, see [that document's Revision Hi
* Specified [[#transaction-scheduling]] more precisely and disallow starting read/write transactions while read-only transactions with overlapping scope are running. ([Issue #253](https://github.com/w3c/IndexedDB/issues/253))
* 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 normalization for negative zero for keys. ([Issue #375](https://github.com/w3c/IndexedDB/issues/375))

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

0 comments on commit 510fee3

Please sign in to comment.