From e68f5d4c3ccd55de54d63cea760c958e61250928 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 e3a1ee6..087fd01 100644 --- a/index.bs +++ b/index.bs @@ -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|. @@ -6784,6 +6787,7 @@ For the revision history of the second edition, see [that document's Revision Hi * 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 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}