@@ -687,7 +687,7 @@ async function mainFetch (fetchParams, recursive = false) {
687687 // 1. Let processBodyError be this step: run fetch finale given fetchParams
688688 // and a network error.
689689 const processBodyError = ( reason ) =>
690- fetchFinale ( fetchParams , makeNetworkError ( reason ) )
690+ fetchFinale . call ( context , fetchParams , makeNetworkError ( reason ) )
691691
692692 // 2. If request’s response tainting is "opaque", or response’s body is null,
693693 // then run processBodyError and abort these steps.
@@ -710,7 +710,7 @@ async function mainFetch (fetchParams, recursive = false) {
710710 response . body = safelyExtractBody ( bytes ) [ 0 ]
711711
712712 // 3. Run fetch finale given fetchParams and response.
713- fetchFinale ( fetchParams , response )
713+ fetchFinale . call ( context , fetchParams , response )
714714 }
715715
716716 // 4. Fully read response’s body given processBody and processBodyError.
@@ -721,7 +721,7 @@ async function mainFetch (fetchParams, recursive = false) {
721721 }
722722 } else {
723723 // 21. Otherwise, run fetch finale given fetchParams and response.
724- fetchFinale ( fetchParams , response )
724+ fetchFinale . call ( context , fetchParams , response )
725725 }
726726}
727727
0 commit comments