Skip to content

Conversation

nbbeeken
Copy link
Contributor

Description

What is changing?

EJSON when in relaxed: false mode (cannonical) is supposed to serialize negative zero to a double.

What is the motivation for this change?

EJSON implementation correctness

Double check the following

  • Ran npm run lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket
@nbbeeken nbbeeken force-pushed the NODE-4464-neg-zero-ejson branch from de2f9c3 to 7b1d892 Compare November 28, 2022 21:43
@jimmywarting

This comment was marked as off-topic.

@nbbeeken

This comment was marked as off-topic.

@jimmywarting

This comment was marked as off-topic.

@nbbeeken nbbeeken marked this pull request as ready for review November 30, 2022 21:57
@nbbeeken nbbeeken force-pushed the NODE-4464-neg-zero-ejson branch from 7b1d892 to fcb377b Compare November 30, 2022 22:26
@baileympearson
Copy link
Contributor

Can we change the title of the PR to accurately reflect the contents? The PR now handles parsing ejson with negative zeroes as well.

@nbbeeken nbbeeken changed the title fix(NODE-4464): stringify negative zero to $numberDouble: -0.0 fix(NODE-4464):stringify and parse negative zero to and from $numberDouble: -0.0 Dec 1, 2022
@baileympearson baileympearson merged commit a469e91 into main Dec 2, 2022
@baileympearson baileympearson deleted the NODE-4464-neg-zero-ejson branch December 2, 2022 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants