Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Oct 21, 2024
1 parent 88722e9 commit a67403f
Showing 1 changed file with 17 additions and 25 deletions.
42 changes: 17 additions & 25 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -110267,19 +110267,6 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
</li>
</ol>

<h5>The <code>ShadowRealmGlobalScope</code> interface</h5>

<p class="XXX">Move this!</p>

<pre class="idl">[Global]
interface <dfn interface>ShadowRealmGlobalScope</dfn> : <span>EventTarget</span> {
readonly attribute ShadowRealmGlobalScope <span data-x="dom-ShadowRealmGlobalScope-self">self</span>;
};</pre>

<p>The <dfn for="ShadowRealmGlobalScope" attribute><code
data-x="dom-ShadowRealmGlobalScope-self">self</code></dfn> getter steps are to return
<span>this</span>.</p>

<h5><dfn data-x="the-HostInitializeShadowRealm-implementation">HostInitializeShadowRealm</dfn>(<var>realm</var>, <var>context</var>)</h5>

<p>JavaScript contains an <span>implementation-defined</span> <span
Expand All @@ -110293,13 +110280,6 @@ interface <dfn interface>ShadowRealmGlobalScope</dfn> : <span>EventTarget</span>
<li><p>Let <var>globalObject</var> be a <span>new</span> <code>ShadowRealmGlobalScope</code>
object with <var>realm</var>.</p></li>

<li><p>Perform <span
data-x="js-SetRealmGlobalObject">SetRealmGlobalObject</span>(<var>realm</var>,
<var>globalObject</var>, undefined). <span class="XXX">(Should this use
InitializeHostDefinedRealm?)</span></p></li>

<li><p>Perform ? <span>SetDefaultGlobalBindings</span>(<var>realm</var>).</p></li>

<li><p>Let <var>settings</var> be a new <span>synthetic realm settings object</span> that this
algorithm will subsequently initialize.</p></li>

Expand All @@ -110320,10 +110300,21 @@ interface <dfn interface>ShadowRealmGlobalScope</dfn> : <span>EventTarget</span>

<li><p>Set <var>realm</var>.[[HostDefined]] to <var>settings</var>.</p></li>

<li><p>Return unused.</p></li>
<li><p>Return <var>globalObject</var>.</p></li>
</ol>

</div>
<h6>The <code>ShadowRealmGlobalScope</code> interface</h6>

<pre><code class="idl">[Global]
interface <dfn interface>ShadowRealmGlobalScope</dfn> : <span>EventTarget</span> {
readonly attribute ShadowRealmGlobalScope <span data-x="dom-ShadowRealmGlobalScope-self">self</span>;
};</code></pre>

<p>The <dfn for="ShadowRealmGlobalScope" attribute><code
data-x="dom-ShadowRealmGlobalScope-self">self</code></dfn> getter steps are to return
<span>this</span>.</p>

</div>

<h4>Event loops</h4>

Expand Down Expand Up @@ -112775,9 +112766,10 @@ interface mixin <dfn interface>WindowEventHandlers</dfn> {
// structured cloning
any <span data-x="dom-structuredClone">structuredClone</span>(any value, optional <span>StructuredSerializeOptions</span> options = {});
};
<span>Window</span> includes <span>WindowOrWorkerGlobalScope</span>;
<span>WorkerGlobalScope</span> includes <span>WindowOrWorkerGlobalScope</span>;
<span>ShadowRealmGlobalScope</span> includes <span>WindowOrWorkerGlobalScope</span>;</code></pre>
<span>Window</span> includes <span>UniversalGlobalScope</span>;
<span>WorkerGlobalScope</span> includes <span>UniversalGlobalScope</span>;
<span>ShadowRealmGlobalScope</span> includes <span>UniversalGlobalScope</span>;
<span>WorkletGlobalScope</span> includes <span>UniversalGlobalScope</span>;</code></pre>

<h4 id="atob">Base64 utility methods</h4>

Expand Down

0 comments on commit a67403f

Please sign in to comment.