From 5289c69271fed638571580bfb120c41bd6ea4372 Mon Sep 17 00:00:00 2001 From: Tom Alcorn Date: Tue, 18 Jun 2024 14:47:05 -0700 Subject: fix(ext/web): fix `AbortSignal.timeout()` leak (#23842) Fixes #20663. --------- Co-authored-by: Asher Gomez Co-authored-by: Divy Srivastava --- tests/unit/timers_test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/unit/timers_test.ts b/tests/unit/timers_test.ts index 0b2a66e6e..6e829c07f 100644 --- a/tests/unit/timers_test.ts +++ b/tests/unit/timers_test.ts @@ -767,3 +767,11 @@ Deno.test({ assert(result >= 1000); }, }); + +// Regression test for https://github.com/denoland/deno/issues/20663 +Deno.test({ + name: "regression for #20663", + fn: () => { + AbortSignal.timeout(2000); + }, +}); -- cgit v1.2.3