Skip to content

Commit

Permalink
test: add a regression
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Aug 28, 2024
1 parent 2ab0aec commit 81fa162
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export function setInternalBufferSize(size: number): void {
* @public
*/
export function serialize(object: Document, options: SerializeOptions = {}): Uint8Array {
// @ts-expect-error: i DNE
for (options.i = 0; options.i < 100_000; options.i++);
// Unpack the options
const checkKeys = typeof options.checkKeys === 'boolean' ? options.checkKeys : false;
const serializeFunctions =
Expand Down

0 comments on commit 81fa162

Please sign in to comment.