Skip to content

Commit

Permalink
Rename module script to JavaScript module script
Browse files Browse the repository at this point in the history
This patch creates a common concept of a "module script", unifying
JavaScript module scripts with JSON module scripts (and future concepts
like style sheet module scripts, WebAssembly module scripts, etc.)
The name change includes the following fixes:
- Clarify that <link rel=modulepreload> works for JSON module scripts.
- Check for Cyclic Module Records in fetching module descendants
  and finding the first parse error.
- Initialize the settings object and error to rethrow in JSON module
  scripts, both of which are used by algorithms in HTML.
- Add various asserts to make it clear why we can use things when we do.

Module scripts may be renamed to simply "modules" in a future patch.
  • Loading branch information
littledan committed Mar 6, 2019
1 parent bd2a5ae commit ced9b08
Showing 1 changed file with 171 additions and 103 deletions.
Loading

0 comments on commit ced9b08

Please sign in to comment.