Skip to content

Commit

Permalink
fix: update spec text
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Jun 26, 2023
1 parent ac82a53 commit 9505a37
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,15 @@ async function fetch (input, init = {}) {
// 1. Set locallyAborted to true.
locallyAborted = true

// 2. Abort the fetch() call with p, request, responseObject,
// 2. Assert: controller is non-null.
assert(controller != null)

// 3. Abort controller with requestObject’s signal’s abort reason.
controller.abort(requestObject.signal.reason)

// 4. Abort the fetch() call with p, request, responseObject,
// and requestObject’s signal’s abort reason.
abortFetch(p, request, responseObject, requestObject.signal.reason)

// 3. If controller is not null, then abort controller.
if (controller != null) {
controller.abort(requestObject.signal.reason)
}
},
{ once: true }
)
Expand Down

0 comments on commit 9505a37

Please sign in to comment.