From d76829fe0f162b66ee87c4dc3c9ee147384371d6 Mon Sep 17 00:00:00 2001
From: Daniel Ehrenberg User 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.RequestCredentials
enumerationRequestDestination
enumerationfetch()
method
+
@@ -86655,7 +86665,7 @@ interface ApplicationCache : EventTarget {
Definitions
-
@@ -86668,7 +86678,9 @@ interface ApplicationCache : EventTarget {
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 CreateSyntheticModule + (« "default" », the following steps, module map settings object's + Realm, json) with the + following steps given module as an argument:
+Set moduleMap[url] to module
@@ -121954,6 +122008,9 @@ INSERT INTERFACES HERE