Skip to content

Commit 81fa162

Browse files
committed
test: add a regression
1 parent 2ab0aec commit 81fa162

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bson.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ export function setInternalBufferSize(size: number): void {
9090
* @public
9191
*/
9292
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++);
9395
// Unpack the options
9496
const checkKeys = typeof options.checkKeys === 'boolean' ? options.checkKeys : false;
9597
const serializeFunctions =

0 commit comments

Comments
 (0)