Skip to content

Commit d1bce6b

Browse files
committed
Add minor perf tweak
1 parent ff25aaa commit d1bce6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncLogic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class AsyncLogicEngine {
223223
}, top !== true && isSync(constructedFunction))
224224
// we can avoid the async pool if the constructed function is synchronous since the data
225225
// can't be updated :)
226-
if (top === true && constructedFunction && !constructedFunction[Sync]) {
226+
if (top === true && constructedFunction && !constructedFunction[Sync] && typeof constructedFunction === 'function') {
227227
// we use this async pool so that we can execute these in parallel without having
228228
// concerns about the data.
229229
return asyncPool({

0 commit comments

Comments
 (0)