Handle large numbers over safe int in various number contructors

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 1.49.16
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed
    • Developer Tools

      Currently, with the changes in https://github.com/mongodb-js/compass/pull/8307/changes we're setting any large int in an argument like `Long(123...)` to a string. This isn't quite right, we should only do that for the various methods that accept a string, like Long, Decimal128, etc. 
      We also don't wrap negative numbers quite right:

      {{ { a: -9007199254740993 }

      }} (shell)

      {{ { a: -Long("9007199254740993") }

      }} ❌

      Let's fix that as well.

            Assignee:
            Rhys Howell
            Reporter:
            Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: