From 629dd62127903d2e06959e850c3545c71b9262ef Mon Sep 17 00:00:00 2001
From: Ms2ger
- The host may use this hook to add properties to the ShadowRealm's global
- object. Those properties must be configurable.
-
This specification does not recommend any specific addition.
@@ -626,13 +623,13 @@ ShadowRealm ( )
1. Let _realmRec_ be the Realm of _innerContext_.
1. Set _O_.[[ShadowRealm]] to _realmRec_.
1. Perform ? HostInitializeShadowRealm(_realmRec_, _innerContext_, _O_).
+ 1. Assert: _realmRec_.[[GlobalObject]] is an ordinary object.
1. Return _O_.
@@ -612,10 +613,6 @@
to the ShadowRealm, e.g., for module loading.
-
including `HTMLElement`, `localStorage`, `fetch`, etc.
- The ShadowRealm constructor (
+ If a host defines that a specific global object is to be used for a ShadowRealm, that + object must be an extensible ordinary object, and any properties on it must be configurable. +