(fetchParams, response)
| 1008 | |
| 1009 | // https://fetch.spec.whatwg.org/#finalize-response |
| 1010 | function finalizeResponse (fetchParams, response) { |
| 1011 | // 1. Set fetchParams’s request’s done flag. |
| 1012 | fetchParams.request.done = true |
| 1013 | |
| 1014 | // 2, If fetchParams’s process response done is not null, then queue a fetch |
| 1015 | // task to run fetchParams’s process response done given response, with |
| 1016 | // fetchParams’s task destination. |
| 1017 | if (fetchParams.processResponseDone != null) { |
| 1018 | queueMicrotask(() => fetchParams.processResponseDone(response)) |
| 1019 | } |
| 1020 | } |
| 1021 | |
| 1022 | // https://fetch.spec.whatwg.org/#fetch-finale |
| 1023 | function fetchFinale (fetchParams, response) { |
no test coverage detected