Skip to content

Commit

Permalink
Editorial: Remove outdated use of "EnvironmentRecord"
Browse files Browse the repository at this point in the history
Formerly, 7.3 "The Window object" referred to
`(realm).[[GlobalEnv]]'s EnvironmentRecord's [[GlobalThisValue]]`
Here, `(realm).[[GlobalEnv]]` was a Lexical Environment,
whose `EnvironmentRecord` component was a global Environment Record,
with a `[[GlobalThisValue]]` field.

However, tc39/ecma262#1697 eliminated Lexical Environments,
merging them into Environment Records.
So now `(realm).[[GlobalEnv]]` is a global Environment Record,
and the reference should be
`(realm).[[GlobalEnv]].[[GlobalThisValue]]`
  • Loading branch information
jmdyck committed Jan 26, 2022
1 parent 6b18d42 commit a228de5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2752,7 +2752,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x-href="https://tc39.es/ecma262/#execution-context-stack">JavaScript execution context stack</dfn></li>
<li><dfn data-x-href="https://tc39.es/ecma262/#sec-code-realms">JavaScript realm</dfn></li>
<li><dfn data-x-href="https://tc39.es/ecma262/#sec-jobcallback-records">JobCallback Record</dfn></li>
<li><dfn data-x-href="https://tc39.es/ecma262/#sec-lexical-environments">EnvironmentRecord</dfn></li>
<li><dfn data-x-href="https://tc39.es/ecma262/#sec-built-in-function-objects">NewTarget</dfn></li>
<li><dfn data-x-href="https://tc39.es/ecma262/#running-execution-context">running JavaScript execution context</dfn></li>
<li><dfn data-x-href="https://tc39.es/ecma262/#surrounding-agent">surrounding agent</dfn></li>
Expand Down Expand Up @@ -81523,8 +81522,7 @@ dictionary <dfn dictionary>WindowPostMessageOptions</dfn> : <span>StructuredSeri
<p>The <dfn attribute for="Window"><code data-x="dom-window">window</code></dfn>, <dfn attribute
for="Window"><code data-x="dom-frames">frames</code></dfn>, and <dfn attribute for="Window"><code
data-x="dom-self">self</code></dfn> attributes' getters must return this <code>Window</code>
object's <span data-x="concept-relevant-realm">relevant Realm</span>.[[GlobalEnv]]'s
<span>EnvironmentRecord</span>'s [[GlobalThisValue]].</p>
object's <span data-x="concept-relevant-realm">relevant Realm</span>.[[GlobalEnv]].[[GlobalThisValue]].</p>

<p>The <dfn attribute for="Window"><code data-x="dom-document">document</code></dfn> IDL
attribute, on getting, must return this <code>Window</code> object's <span
Expand Down

0 comments on commit a228de5

Please sign in to comment.