Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify the definition of the "entry" concept #2499

Merged
merged 2 commits into from
Apr 18, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -87443,9 +87443,6 @@ interface <dfn>NavigatorOnLine</dfn> {

<ol>

<li><p>Increment <var>settings</var>'s <span>realm execution context</span>'s <span>entrance
counter</span> by one.</p></li>

<li><p>Push <var>settings</var>'s <span>realm execution context</span> onto the <span>JavaScript
execution context stack</span>; it is now the <span>running JavaScript execution
context</span>.</p></li>
Expand All @@ -87463,9 +87460,6 @@ interface <dfn>NavigatorOnLine</dfn> {
<li><p>Remove <var>settings</var>'s <span>realm execution context</span> from the
<span>JavaScript execution context stack</span>.</p></li>

<li><p>Decrement <var>settings</var>'s <span>realm execution context</span>'s <span>entrance
counter</span> by one.</p></li>

<li><p>If the <span>JavaScript execution context stack</span> is now empty, <span>perform a
microtask checkpoint</span>. (If this runs scripts, these algorithms will be invoked
reentrantly.)</p></li>
Expand Down Expand Up @@ -87692,15 +87686,15 @@ interface <dfn>NavigatorOnLine</dfn> {

<h6>Entry</h6>

<p>All <span data-x="realm execution context">realm execution contexts</span> must contain, as
part of their code evaluation state, an <dfn>entrance counter</dfn> value, which is initially
zero. In the process of <a href="#calling-scripts">calling scripts</a>, this value will be
incremented and decremented.</p>
<p>The process of <a href="#calling-scripts">calling scripts</a> will push or pop <span
data-x="realm execution context">realm execution contexts</span> onto the <span>JavaScript
execution context stack</span>, interspersed with other <span data-x="JavaScript execution
context">execution contexts</span>.</p>

<p>With this in hand, we define the <dfn>entry execution context</dfn> to be the most recently
pushed entry in the <span>JavaScript execution context stack</span> whose <span>entrance
counter</span> value is greater than zero. The <dfn data-x="concept-entry-realm">entry Realm</dfn>
is the <span>entry execution context</span>'s Realm component.</p>
pushed item in the <span>JavaScript execution context stack</span> that is a <span data-x="realm
execution context">realm execution context</span>. The <dfn data-x="concept-entry-realm">entry
Realm</dfn> is the <span>entry execution context</span>'s Realm component.</p>

<p>Then, the <dfn>entry settings object</dfn> is the <span
data-x="concept-realm-settings-object">environment settings object</span> of the <span
Expand Down Expand Up @@ -120075,6 +120069,7 @@ INSERT INTERFACES HERE
Jens Fendler,
Jens Lindstr&ouml;m,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Jens Lindström" used to be me, before I got married. Might make sense to remove this entry, now that my new name was added to the list.

Jens Oliver Meiert,
Jens Widell,
Jer Noble,
Jeremey Hustman,
Jeremy Keith,
Expand Down