Force the garbage collector to run extremely often, especially inside bun:test
.
0
: default, disable1
: asynchronously call the garbage collector more often2
: synchronously call the garbage collector more often.
This is a global setting. It's useful for debugging seemingly random crashes.
BUN_GARBAGE_COLLECTOR_LEVEL
environment variable is also supported.