Skip to content

Commit 065cd4b

Browse files
authored
fetch: pullAlgorithm passes the async function through (#3604)
1 parent 3d0ce67 commit 065cd4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web/fetch/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1889,8 +1889,8 @@ async function httpNetworkFetch (
18891889

18901890
// 11. Let pullAlgorithm be an action that resumes the ongoing fetch
18911891
// if it is suspended.
1892-
const pullAlgorithm = async () => {
1893-
await fetchParams.controller.resume()
1892+
const pullAlgorithm = () => {
1893+
return fetchParams.controller.resume()
18941894
}
18951895

18961896
// 12. Let cancelAlgorithm be an algorithm that aborts fetchParams’s

0 commit comments

Comments
 (0)