Skip to content

Commit

Permalink
fix(NODE-4874): Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
W-A-James committed Jan 6, 2023
1 parent a6a2787 commit b9c0850
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/extended_json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,6 @@ function deserializeValue(value: any, options: EJSONOptions = {}) {
return new Double(value);
}

if (typeof value === 'bigint') {
if (options.useBigInt64) {
return value;
}
return Long.fromBigInt(value);
}

// from here on out we're looking for bson types, so bail if its not an object
if (value == null || typeof value !== 'object') return value;

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

throw new BSONError(
'Converting circular structure to EJSON:\n' +
` ${leadingPart}${alreadySeen}${circularPart}${current}\n` +
` ${leadingSpace}\\${dashes}/`
` ${leadingPart}${alreadySeen}${circularPart}${current}\n` +
` ${leadingSpace}\\${dashes}/`
);
}
options.seenObjects[options.seenObjects.length - 1].obj = value;
Expand Down

0 comments on commit b9c0850

Please sign in to comment.