Skip to content

Commit

Permalink
fix: improve stack traces
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop support for Node < 16
  • Loading branch information
jedwards1211 committed Apr 9, 2024
1 parent 2a3be14 commit 10a62e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ export class Poller<T> {
const now = Date.now()
try {
result = await Promise.race([
manualPromise,
this._fn({
attemptNumber: attemptNumber++,
elapsedTime: now - startTime,
fail,
pass,
}),
manualPromise,
])
} catch (err) {
error = err
Expand Down

0 comments on commit 10a62e1

Please sign in to comment.