We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab0aec commit 81fa162Copy full SHA for 81fa162
src/bson.ts
@@ -90,6 +90,8 @@ export function setInternalBufferSize(size: number): void {
90
* @public
91
*/
92
export function serialize(object: Document, options: SerializeOptions = {}): Uint8Array {
93
+ // @ts-expect-error: i DNE
94
+ for (options.i = 0; options.i < 100_000; options.i++);
95
// Unpack the options
96
const checkKeys = typeof options.checkKeys === 'boolean' ? options.checkKeys : false;
97
const serializeFunctions =
0 commit comments