From a228de5aa2d2faafe75e96653c144422ada48684 Mon Sep 17 00:00:00 2001
From: Michael Dyck
Date: Tue, 25 Jan 2022 23:07:19 -0500
Subject: [PATCH] Editorial: Remove outdated use of "EnvironmentRecord"
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]]`
---
source | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/source b/source
index 66182bddb55..e5ecd29dc3e 100644
--- a/source
+++ b/source
@@ -2752,7 +2752,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
JavaScript execution context stack
JavaScript realm
JobCallback Record
- EnvironmentRecord
NewTarget
running JavaScript execution context
surrounding agent
@@ -81523,8 +81522,7 @@ dictionary WindowPostMessageOptions : StructuredSeri
The window
, frames
, and self
attributes' getters must return this Window
- object's relevant Realm.[[GlobalEnv]]'s
- EnvironmentRecord's [[GlobalThisValue]].
+ object's relevant Realm.[[GlobalEnv]].[[GlobalThisValue]].
The document
IDL
attribute, on getting, must return this Window
object's