From fb96c86596ffa307639da7ee295129577bf74cd3 Mon Sep 17 00:00:00 2001 From: uzlopak Date: Fri, 13 Sep 2024 22:54:33 +0200 Subject: [PATCH] fetch: pullAlgorithm passes the async function through --- lib/web/fetch/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/web/fetch/index.js b/lib/web/fetch/index.js index 8e30a90179e..435eafdf15f 100644 --- a/lib/web/fetch/index.js +++ b/lib/web/fetch/index.js @@ -1889,8 +1889,8 @@ async function httpNetworkFetch ( // 11. Let pullAlgorithm be an action that resumes the ongoing fetch // if it is suspended. - const pullAlgorithm = async () => { - await fetchParams.controller.resume() + const pullAlgorithm = () => { + return fetchParams.controller.resume() } // 12. Let cancelAlgorithm be an algorithm that aborts fetchParams’s