Skip to content

Commit

Permalink
Restructure HostInitializeShadowRealm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Nov 18, 2024
1 parent 9e48745 commit ea3c573
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3043,7 +3043,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li>The <dfn data-x="js-HostMakeJobCallback" data-x-href="https://tc39.es/ecma262/#sec-hostmakejobcallback">HostMakeJobCallback</dfn> abstract operation</li>
<li>The <dfn data-x="js-HostPromiseRejectionTracker" data-x-href="https://tc39.es/ecma262/#sec-host-promise-rejection-tracker">HostPromiseRejectionTracker</dfn> abstract operation</li>
<li>The <dfn data-x="js-InitializeHostDefinedRealm" data-x-href="https://tc39.es/ecma262/#sec-initializehostdefinedrealm">InitializeHostDefinedRealm</dfn> abstract operation</li>
<li>The <dfn data-x="js-SetRealmGlobalObject" data-x-href="https://tc39.es/ecma262/#sec-setrealmglobalobject">SetRealmGlobalObject</dfn> abstract operation</li>
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-isaccessordescriptor">IsAccessorDescriptor</dfn> abstract operation</li>
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-iscallable">IsCallable</dfn> abstract operation</li>
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-isconstructor">IsConstructor</dfn> abstract operation</li>
Expand Down Expand Up @@ -3074,6 +3073,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-samevalue">SameValue</dfn> abstract operation</li>
<li>The <dfn data-x="js-ScriptEvaluation" data-x-href="https://tc39.es/ecma262/#sec-runtime-semantics-scriptevaluation">ScriptEvaluation</dfn> abstract operation</li>
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-setdefaultglobalbindings">SetDefaultGlobalBindings</dfn> abstract operation</li>
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-newglobalenvironment">NewGlobalEnvironment</dfn> abstract operation</li>
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-set-immutable-prototype">SetImmutablePrototype</dfn> abstract operation</li>
<li>The <dfn data-x="js-ToBoolean" data-x-href="https://tc39.es/ecma262/#sec-toboolean">ToBoolean</dfn> abstract operation</li>
<li>The <dfn data-x-href="https://tc39.es/ecma262/#sec-tostring">ToString</dfn> abstract operation</li>
Expand Down Expand Up @@ -111475,7 +111475,14 @@ import "https://example.com/foo/../module2.mjs";</code></pre>

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

<li><p>Return <var>globalObject</var>.</p></li>
<li><p>Set <var>realm</var>.[[GlobalObject]] to <var>globalObject</var>.</p></li>

<li><p>Set <var>realm</var>.[[GlobalEnv]] to
<span>NewGlobalEnvironment</span>(<var>globalObject</var>, <var>globalObject</var>).</p></li>

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

<li><p>Return <span>NormalCompletion</span>(unused).</p></li>
</ol>

<h6>The <code>ShadowRealmGlobalScope</code> interface</h6>
Expand Down

0 comments on commit ea3c573

Please sign in to comment.