From d1c452c342404f893c702b0c285fb5834460fd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Tue, 18 Jul 2023 12:36:28 +0200 Subject: [PATCH] Convert variables in script fetching algorithms to camelCase --- source | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/source b/source index 449cb45f87a..00b1481bbe1 100644 --- a/source +++ b/source @@ -102905,20 +102905,20 @@ document.querySelector("button").addEventListener("click", bound);
  • -

    Let source text be the result of decoding +

    Let sourceText be the result of decoding bodyBytes to Unicode, using encoding as the fallback encoding.

    The decode algorithm overrides encoding if the file contains a BOM.

  • -
  • Let muted errors be true if response was +

  • Let mutedErrors be true if response was CORS-cross-origin, and false otherwise.

  • Let script be the result of creating a classic script given - source text, settingsObject, response's URL, options, and muted - errors.

  • + sourceText, settingsObject, response's URL, options, and + mutedErrors.

  • Run onComplete given script.
  • @@ -102993,11 +102993,11 @@ document.querySelector("button").addEventListener("click", bound); the future; see issue #3255.

    -
  • Let source text be the result of UTF-8 +

  • Let sourceText be the result of UTF-8 decoding bodyBytes.

  • Let script be the result of creating a classic script using - source text, scriptSettings, response's sourceText, scriptSettings, response's URL, and the default classic script fetch options.

  • @@ -103071,16 +103071,16 @@ document.querySelector("button").addEventListener("click", bound);

    then throw a "NetworkError" DOMException.

    -
  • Let source text be the result of UTF-8 +

  • Let sourceText be the result of UTF-8 decoding bodyBytes.

  • -
  • Let muted errors be true if response was +

  • Let mutedErrors be true if response was CORS-cross-origin, and false otherwise.

  • Let script be the result of creating a classic script given - source text, settingsObject, response's sourceText, settingsObject, response's URL, the default classic script fetch options, - and muted errors.

  • + and mutedErrors.

  • Return script.

  • @@ -103511,14 +103511,14 @@ document.querySelector("button").addEventListener("click", bound); steps.

    -
  • Let source text be the result of UTF-8 +

  • Let sourceText be the result of UTF-8 decoding bodyBytes.

  • -
  • Let MIME type be the result of extracting +

  • Let MIMEType be the result of extracting a MIME type from response's header list.

  • -
  • Let module script be null.

  • +
  • Let moduleScript be null.

  • Let referrerPolicy be the result of parsing the `Referrer-Policy` header @@ -103528,26 +103528,26 @@ document.querySelector("button").addEventListener("click", bound); data-x="concept-script-fetch-options-referrer-policy">referrer policy to referrerPolicy.

  • -
  • If MIME type is a JavaScript MIME type and moduleType - is "javascript", then set module script to the result of - creating a JavaScript module script given source text, +

  • If MIMEType is a JavaScript MIME type and moduleType + is "javascript", then set moduleScript to the result of + creating a JavaScript module script given sourceText, moduleMapSettings, response's URL, and options.

  • -
  • If the MIME type essence of MIME type is "text/css" - and moduleType is "css", then set module script to - the result of creating a CSS module script given source text and +

  • If the MIME type essence of MIMEType is "text/css" + and moduleType is "css", then set moduleScript to + the result of creating a CSS module script given sourceText and moduleMapSettings.

  • -
  • If MIME type essence is a JSON MIME type and - moduleType is "json", then set module script to - the result of creating a JSON module script given source text and +

  • If MIMEType is a JSON MIME type and + moduleType is "json", then set moduleScript to + the result of creating a JSON module script given sourceText and moduleMapSettings.

  • Set moduleMap[(url, - moduleType)] to module script, and run onComplete given - module script.

    + moduleType)] to moduleScript, and run onComplete given + moduleScript.

    It is intentional that the module map is keyed by the request URL, whereas the