-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: BSON
Use Case
As a BSON library user,
I want -0 to serialize to the Double type
So that it remains negative when round-trips from BSON.
User Impact
*How severe is the impact? Is anyone blocked or broken?
Users who use -0 are not able to preserve the negative.
Dependencies
- JS-BSON, BSON-EXT
Unknowns
- Is it a breaking change to start serializing -0 differently?
- How does BSON-EXT serialize -0?
Acceptance Criteria
- TBD, based on unknowns
Implementation Requirements
- to have bson.serialize(-0) to Double (BSON type 0x01)
Testing Requirements
- see js-bson/test/node/double_tests.js for skipped test __
- is related to
-
NODE-4464 Negative zero not handled properly in extended JSON
- Closed