Skip to content

Editorial: Don't mention writability in the Global Environment Record GetBindingValue description - #4042

Open
bakkot wants to merge 1 commit into
tc39:mainfrom
bakkot:global-getbindingvalue-note
Open

bakkot wants to merge 1 commit into
tc39:mainfrom
bakkot:global-getbindingvalue-note

Conversation

@bakkot

@bakkot bakkot commented Oct 29, 2026

Copy link
Copy Markdown
Member

GetBindingValue does not care about writability (as you can confirm by reading the algorithm and seeing that it will bottom out in GetBindingValue for Object environment records). Presumably this was copied from the SetMutableBinding section above it when this section was introduced in ES2015.

Cherry-pick of the commit from #4012 by @JinDX.

@linusg linusg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I find the "normally already exists" wording a little odd, but that's a separate cleanup.

@github-actions

Copy link
Copy Markdown

The rendered spec preview for this PR is available as a single page at https://tc39.es/ecma262/pr/4042 and as multiple pages at https://tc39.es/ecma262/pr/4042/multipage .

@bakkot bakkot changed the title editorial: remove writability from GetBindingValue description Editorial: remove writability from GetBindingValue description Oct 29, 2026
@gibson042 gibson042 changed the title Editorial: remove writability from GetBindingValue description Editorial: Don't mention writability in the Global Environment Record GetBindingValue description Oct 30, 2026
@gibson042 gibson042 added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Oct 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants