From 7324e67622bf7f7bfb2e10ee82ebbda951b79cf7 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Tue, 12 Jan 2021 16:43:40 +0100 Subject: [PATCH] Editorial: consistify clone() method of Request and Response And address a cross-reference problem and unreachable return. --- fetch.bs | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/fetch.bs b/fetch.bs index 06565c467..d63342de7 100644 --- a/fetch.bs +++ b/fetch.bs @@ -6359,18 +6359,10 @@ set; otherwise false.
  • Set clonedRequestObject's request to clonedRequest. -

  • -

    Set clonedRequestObject's headers to a new {{Headers}} object - with the following properties: - -

    -
    header list -
    clonedRequest's header list. - -
    guard -
    This's headers's guard. -
    -
  • +
  • Set clonedRequestObject's headers to a new {{Headers}} object + whose header list is clonedRequest's header list + and guard is this's headers's + guard.

  • Make clonedRequestObject's signal follow this's signal. @@ -6564,14 +6556,12 @@ otherwise false.

  • Set clonedResponseObject's response to clonedResponse. -

  • Set clonedResponseObject's headers to a new {{Headers}} object - whose header list is set to clonedResponse's - header list, and guard is this's +

  • Set clonedResponseObject's headers to a new {{Headers}} + object whose header list is clonedResponse's + header list and guard is this's headers's guard.

  • Return clonedResponseObject. - -

  • Return clonedResponse.