-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] JavaScript Realm proposal integration
This patch gives the TC39 JavaScript Realm proposal semantics in HTML. Realms are given an environment settings object, which is especially meaningful for module loading. Other aspects of the environment settings object may be unreachable because Realms do not contain Web APIs, but in general, Realms inherit their settings from the outer environment. Overall, the semantics of Realms are analogous to a same-origin iframe without any Web APIs, just what JavaScript provides. When modules are used in Realms, module specifiers are interpreted with respect to the base URL of the surrounding environment, but when a module is imported within a Realm, it is a separate copy from what may be loaded in the surrounding environment or other Realms. The Realm proposal is currently at Stage 2, and this patch should not land until, at the earliest, the proposal is at Stage 3.
- Loading branch information
Showing
1 changed file
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters