Skip to content

Commit b9c0850

Browse files
committed
fix(NODE-4874): Remove dead code
1 parent a6a2787 commit b9c0850

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/extended_json.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,6 @@ function deserializeValue(value: any, options: EJSONOptions = {}) {
9797
return new Double(value);
9898
}
9999

100-
if (typeof value === 'bigint') {
101-
if (options.useBigInt64) {
102-
return value;
103-
}
104-
return Long.fromBigInt(value);
105-
}
106-
107100
// from here on out we're looking for bson types, so bail if its not an object
108101
if (value == null || typeof value !== 'object') return value;
109102

@@ -209,8 +202,8 @@ function serializeValue(value: any, options: EJSONSerializeOptions): any {
209202

210203
throw new BSONError(
211204
'Converting circular structure to EJSON:\n' +
212-
` ${leadingPart}${alreadySeen}${circularPart}${current}\n` +
213-
` ${leadingSpace}\\${dashes}/`
205+
` ${leadingPart}${alreadySeen}${circularPart}${current}\n` +
206+
` ${leadingSpace}\\${dashes}/`
214207
);
215208
}
216209
options.seenObjects[options.seenObjects.length - 1].obj = value;

0 commit comments

Comments
 (0)