Skip to content

Commit 335d6a4

Browse files
committed
refactor(bson): export a new object, rather than assigning to constants
1 parent 3d9af76 commit 335d6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function deserializeStream(data, startIndex, numberOfDocuments, documents, docSt
214214
return index;
215215
}
216216

217-
module.exports = Object.assign(constants, {
217+
module.exports = Object.assign({}, constants, {
218218
// wrapped types
219219
Code,
220220
Map,

0 commit comments

Comments
 (0)