From 596c8cbe7026410e057b3600e2f1276da42befa7 Mon Sep 17 00:00:00 2001 From: pfg Date: Fri, 6 Jun 2025 18:56:07 -0700 Subject: [PATCH] fix --- test/js/node/test/parallel/test-abortcontroller.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/js/node/test/parallel/test-abortcontroller.js b/test/js/node/test/parallel/test-abortcontroller.js index 71fb74de09..ab99cdc75c 100644 --- a/test/js/node/test/parallel/test-abortcontroller.js +++ b/test/js/node/test/parallel/test-abortcontroller.js @@ -208,7 +208,11 @@ test('AbortSignal.timeout() does not prevent the signal from being collected', a } await sleep(10); - globalThis.gc(); + if(typeof Bun !== "undefined") { + Bun.gc(true); + }else{ + globalThis.gc(); + } strictEqual(ref.deref(), undefined); });