Skip to content

Commit

Permalink
Normalize negative zero
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Apr 13, 2023
1 parent 7ff900f commit 03c2492
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 @@ -6406,6 +6406,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 @@ -6781,6 +6784,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 03c2492

Please sign in to comment.