diff options
Diffstat (limited to 'integration/bunjs-only-snippets/gc.js')
-rw-r--r-- | integration/bunjs-only-snippets/gc.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/integration/bunjs-only-snippets/gc.js b/integration/bunjs-only-snippets/gc.js deleted file mode 100644 index 9212e8b76..000000000 --- a/integration/bunjs-only-snippets/gc.js +++ /dev/null @@ -1,15 +0,0 @@ -export function gc() { - // console.trace("GC"); - Bun.gc(true); -} - -// we must ensure that finalizers are run -// so that the reference-counting logic is exercised -export function gcTick(trace = false) { - trace && console.trace(""); - // console.trace("hello"); - gc(); - return new Promise((resolve) => { - setTimeout(resolve, 0); - }); -} |