Skip to content

Commit aa19996

Browse files
committed
build regular object
1 parent 3f2435b commit aa19996

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/integration/oom.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
describe.only('OOM exit code detection', function () {
22
it('allocates until OOM', function () {
3-
const leak: Uint8Array[] = [];
3+
const leak: object[] = [];
44
while (true) {
5-
leak.push(new Uint8Array(1_000_000));
5+
leak.push({ a: Array.from({ length: 1_000 }, (_, i) => ({ i })) });
66
}
77
});
88
});

0 commit comments

Comments
 (0)