From 40f331c27e70690e724f9ddc893fed0556058987 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Sun, 3 Mar 2019 15:29:24 +0100 Subject: [PATCH] Fix unbound reference to clearTimeout Test code should be able to stuck the global clearTimeout() without breaking AVA. --- lib/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test.js b/lib/test.js index f417034de..ad86c1c4f 100644 --- a/lib/test.js +++ b/lib/test.js @@ -278,7 +278,7 @@ class Test { } clearTimeout() { - clearTimeout(this.timeoutTimer); + nowAndTimers.clearTimeout(this.timeoutTimer); this.timeoutTimer = null; }