bsonObjToArray and bsonGetImmutable are sibling functions in the MozJS BSON binding layer. bsonGetImmutable ensures the BSONObj it works with is owned before creating JS wrappers around it; bsonObjToArray does not apply the same treatment. This inconsistency can lead to incorrect behaviour when operating on sub-document wrappers. Bring bsonObjToArray in line with the established pattern used by bsonGetImmutable.
Align bsonObjToArray ownership semantics with bsonGetImmutable
- Assignee:
-
Lee Maguire
- Reporter:
-
Lee Maguire
- Votes:
-
0 Vote for this issue - Watchers:
-
7 Start watching this issue
- Created:
- Updated:
- Resolved: