Skip to content

Editorial: add NOTE to CreateGlobalVarBinding about InitializeBinding Proxy behavior#3866

Open
alexey-alanreys wants to merge 2 commits into
tc39:mainfrom
alexey-alanreys:editorial/createglobalvarbinding-note
Open

Editorial: add NOTE to CreateGlobalVarBinding about InitializeBinding Proxy behavior#3866
alexey-alanreys wants to merge 2 commits into
tc39:mainfrom
alexey-alanreys:editorial/createglobalvarbinding-note

Conversation

@alexey-alanreys
Copy link
Copy Markdown

Fixes #3854

CreateGlobalFunctionBinding (§9.1.1.4.17) has a NOTE explaining that its Set call produces the same Proxy trap sequence as InitializeBinding. CreateGlobalVarBinding (§9.1.1.4.16) has an analogous InitializeBinding call but no such NOTE, leaving it ambiguous whether the resulting [[Set]] trap on Proxy global objects is intentional.

This PR adds a NOTE to CreateGlobalVarBinding mirroring the existing one in CreateGlobalFunctionBinding.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CreateGlobalVarBinding performs redundant InitializeBinding, causing unintended side effects on Proxy global objects

1 participant