From d329a0f014bbdec408868e470cf68d22f8877cf2 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 15 May 2019 15:47:03 +0200 Subject: [PATCH] Editorial: Remove unnecessary currentScript handling for module scripts Since module scripts never execute synchronously, currentScript must already be null here. --- source | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/source b/source index 7b14d7ff2d1..68a318c244e 100644 --- a/source +++ b/source @@ -58989,15 +58989,6 @@ o............A....e -
  • - -

    Let old script element be the value to which the script - element's node document's currentScript object was most recently - set.

    - -
  • -
  • Switch on the script's type:

    @@ -59006,6 +58997,13 @@ o............A....e
    "classic"
      +
    1. +

      Let old script element be the value to which the script + element's node document's currentScript object was most recently + set.

      +
    2. +
    3. If the script element's root is not a shadow root, then set the script element's node document's

      Run the classic script given by the script's script.

    4. + +
    5. +

      Set the script element's node document's currentScript attribute to old script + element.

      +
    "module"
      -
    1. Set the script element's node document's currentScript attribute to null.

    2. +
    3. Assert: The script element's node document's currentScript attribute is null.

    4. Run the module script given by the script's script.

    5. @@ -59037,14 +59041,6 @@ o............A....e -
    6. - -

      Set the script element's node document's currentScript attribute to old script - element.

      - -
    7. -
    8. Decrement the ignore-destructive-writes counter of neutralized doc, if it was incremented in the earlier step.