diff --git a/source b/source index 99e0b90f80b..188db27fbfe 100644 --- a/source +++ b/source @@ -2783,6 +2783,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
RequestCredentials
enumerationRequestDestination
enumerationfetch()
methodUser agents that support JavaScript must also implement the BigInt proposal.
+ +User agents that support JavaScript must also implement the JavaScript standard library proposal. + The following terms are defined there, and used in this specification:
+A script is one of two possible A script is one of three possible structs. All scripts have:
Either a Script Record, for classic scripts; a Source Text Module Record, for module scripts; or null. In the former two cases, it represents a parsed script; + script">module scripts; a Synthetic Module Record for JSON module scripts; or null. In the + former two cases, it represents a parsed script; in the third case, a parsed JSON document; null represents a failure parsing.
A JSON module script is another type of script. It has no additional items.
+The active script is determined by the following algorithm:
response's status is not an ok status
The result of extracting a MIME type from - response's header list is not a - JavaScript MIME type
+Let type be the result of extracting a + MIME type from response's header + list.
-For historical reasons, fetching a - classic script does not include MIME type checking. In contrast, module scripts will - fail to load if they are not of a correct MIME type.
-For historical reasons, fetching a + classic script does not include MIME type checking. In contrast, module scripts' + interpretation is driven by their MIME type, and they will fail to load if they are not of + a supported MIME type.
-Let source text be the result of UTF-8 - decoding response's body.
Let module script be null.
Let module script be the result of creating a module script given - source text, module map settings object, response's url, and options.
If type is a JavaScript MIME type, then:
+ +Let source text be the result of UTF-8 + decoding response's body.
Set module script to the result of creating a module script given + source text, module map settings object, response's url, and options.
If type is a JSON MIME type, then:
+ +Set module script to a new JSON module script that this algorithm + will subsequently initialize.
Let json be the result of running consume body on + response with JSON.
+ +If this throws an exception, catch it, and set module script's + parse error to that exception.
+If no exception was thrown, set module script's record to CreateSyntheticDefaultModule(json, + module map settings object's Realm).
Set moduleMap[url] to module
@@ -121881,6 +121928,9 @@ INSERT INTERFACES HERE