Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize negative zero #386

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading