-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: EJSON
-
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.