From 10a62e1b4969b567e950ad807bdd584f32df4ce3 Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Tue, 9 Apr 2024 10:53:40 -0500 Subject: [PATCH] fix: improve stack traces BREAKING CHANGE: drop support for Node < 16 --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index f2db666..9a366cb 100644 --- a/src/index.js +++ b/src/index.js @@ -51,13 +51,13 @@ export class Poller { const now = Date.now() try { result = await Promise.race([ + manualPromise, this._fn({ attemptNumber: attemptNumber++, elapsedTime: now - startTime, fail, pass, }), - manualPromise, ]) } catch (err) { error = err