Commit 4a0ccfc
committed
JavaScript ShadowRealm proposal integration
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 2. Once this PR has been approved,
it should be able to advance to Stage 3.1 parent fcc54a3 commit 4a0ccfc
1 file changed
+483
-124
lines changed
0 commit comments