Extended JSON serialization for CodeWithScope and DBRef mutate input

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: EJSON
    • None
    • Not Needed
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      From the pull request:

      // TODO: the two cases below mutate the original document! Bad.  I don't know
      // enough about these two BSON types to know how to safely clone these objects, but
      // someone who knows MongoDB better should fix this to clone instead of mutating input objects.
      

      This is low priority since these are not oft used types (an deprecated in one case), but we'll track it here nonetheless.

      https://github.com/mongodb/js-bson/pull/304

            Assignee:
            Unassigned
            Reporter:
            Matt Broadstone
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: