Skip to content

Commit

Permalink
pass args to onwait#
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Sep 26, 2024
1 parent 582be55 commit be0fe9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,6 @@ function debugWarn (...msg) { // calls to this are ONLY allowed for soft asserti

function autocoreOnWait (fn, index, core) {
if (this.closing) throw REQUEST_CANCELLED()
if (fn) return fn()
if (fn) return fn(index, this)
return true
}

0 comments on commit be0fe9a

Please sign in to comment.