From b09df40d29eda9a80db774d7692acd2eb873bf4b Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Fri, 10 Jun 2022 17:11:50 -0700 Subject: [PATCH] Normalize negative zero --- index.bs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.bs b/index.bs index 9f463b0..1df0668 100644 --- a/index.bs +++ b/index.bs @@ -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|. @@ -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 Accessibility considerations 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}