Skip to content

Editorial: Remove outdated use of "EnvironmentRecord"#7535

Merged
annevk merged 2 commits intowhatwg:mainfrom
jmdyck:EnvironmentRecord
Jan 26, 2022
Merged

Editorial: Remove outdated use of "EnvironmentRecord"#7535
annevk merged 2 commits intowhatwg:mainfrom
jmdyck:EnvironmentRecord

Conversation

@jmdyck
Copy link
Contributor

@jmdyck jmdyck commented Jan 26, 2022

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]]

/infrastructure.html ( diff )
/window-object.html ( diff )

jmdyck and others added 2 commits January 25, 2022 23:55
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]]`
@annevk annevk merged commit b0cf2bc into whatwg:main Jan 26, 2022
@jmdyck jmdyck deleted the EnvironmentRecord branch January 26, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants