diff --git a/src/bson.ts b/src/bson.ts index 0dc8346e..391aaddd 100644 --- a/src/bson.ts +++ b/src/bson.ts @@ -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 =