From 9c33150c30233560637e65072cd3afe7ad84b363 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Thu, 16 Jul 2015 14:08:30 +0200 Subject: [PATCH] Always throw if the used flag is set. Not only if body is non-null. Fixes #55. --- Overview.html | 20 +++++++------------- Overview.src.html | 20 +++++++------------- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/Overview.html b/Overview.html index 956451962..35c01cbea 100644 --- a/Overview.html +++ b/Overview.html @@ -3447,20 +3447,14 @@

6.3 Request class

constructor must run these steps:
    -
  1. Let temporaryBody be null. - -

  2. -

    If input is a Request object and - input's body is non-null, run - these substeps: - -

      -
    1. If input's used flag - is set, throw a TypeError. +

    2. If input is a Request object and its + used flagis set, + throw a TypeError. -

    3. Set temporaryBody to input's - body. -

    +
  3. Let temporaryBody be input's + body if input is a + Request object and input's + body is non-null, and null otherwise.

  4. Let request be input's request, if input is a diff --git a/Overview.src.html b/Overview.src.html index 70be22941..c9429f985 100644 --- a/Overview.src.html +++ b/Overview.src.html @@ -3393,20 +3393,14 @@

    Request class

    constructor must run these steps:
      -
    1. Let temporaryBody be null. - -

    2. -

      If input is a Request object and - input's body is non-null, run - these substeps: - -

        -
      1. If input's used flag - is set, throw a TypeError. +

      2. If input is a Request object and its + used flagis set, + throw a TypeError. -

      3. Set temporaryBody to input's - body. -

      +
    3. Let temporaryBody be input's + body if input is a + Request object and input's + body is non-null, and null otherwise.

    4. Let request be input's request, if input is a