Skip to content

Commit

Permalink
Normalize negative zero
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Mar 3, 2023
1 parent 48e3720 commit 2e84825
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 @@ -6425,6 +6425,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 @@ -6800,6 +6803,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 2e84825

Please sign in to comment.