Skip to content

Commit

Permalink
JavaScript ShadowRealm proposal integration
Browse files Browse the repository at this point in the history
This patch gives the TC39 JavaScript ShadowRealm proposal semantics in HTML.
ShadowRealms are given an environment settings object; in general,
ShadowRealms inherit their settings from the outer environment.

When modules are used in ShadowRealms, module specifiers are interpreted with
respect to the base URL of the surrounding environment, but when a module is
imported within a ShadowRealm, it is a separate copy from what may be loaded
in the surrounding environment or other ShadowRealms.

This patch implements the plan described earlier at
<tc39/proposal-shadowrealm#225 (comment)>.

The ShadowRealm proposal is currently at Stage 3.
  • Loading branch information
Daniel Ehrenberg authored and Ms2ger committed Oct 6, 2022
1 parent f3550cd commit 6e3d80f
Showing 1 changed file with 468 additions and 74 deletions.
Loading

0 comments on commit 6e3d80f

Please sign in to comment.