diff --git a/source b/source index 9aed02e8141..d6d8f784ad1 100644 --- a/source +++ b/source @@ -94269,14 +94269,8 @@ document.querySelector("button").addEventListener("click", bound);
  • Set script's parse error and error to rethrow to null.

  • -
  • -

    Let result be ParseScript(source, - settings's Realm, - script).

    - -

    Passing script as the last parameter here ensures - result.[[HostDefined]] will be script.

    -
  • +
  • Let result be the result of parsing a classic script given + source and script.

  • If result is a list of errors, then: @@ -94296,6 +94290,26 @@ document.querySelector("button").addEventListener("click", bound);

  • Return script.

  • +

    To parse a classic script, given a + string source and an optional classic script + script:

    + +
      +
    1. Let realm be undefined.

    2. + +
    3. Let hostDefined be empty.

    4. + +
    5. If script is given, then set realm to script's + settings object's Realm + and hostDefined to script.

    6. + +
    7. Return ParseScript(source, + realm, hostDefined).

    8. +
    + +

    Fetch uses parsing a classic script as part of + opaque-response blocking.

    +

    To create a JavaScript module script, given a string source, an environment settings object settings, a URL baseURL, and some script