Skip to content

Allow global var-via-eval be declared#4046

Merged
ptomato merged 1 commit into
tc39:mainfrom
syg:rm-sloppy-direct-eval-vars
Apr 12, 2024
Merged

Allow global var-via-eval be declared#4046
ptomato merged 1 commit into
tc39:mainfrom
syg:rm-sloppy-direct-eval-vars

Conversation

@syg

@syg syg commented Apr 8, 2024

Copy link
Copy Markdown
Contributor

See tc39/ecma262#3226

cc @shvaikalesh who originally authored these tests.

@syg syg requested a review from a team as a code owner April 8, 2024 22:23

@ptomato ptomato left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like this accurately covers the proposal, both var and function declarations inside eval, and both let and const bindings shadowing. Thanks!

@ptomato ptomato force-pushed the rm-sloppy-direct-eval-vars branch from 7013c6a to 8affb36 Compare April 12, 2024 00:16
@ptomato ptomato merged commit c5a8099 into tc39:main Apr 12, 2024
@ptomato

ptomato commented Apr 12, 2024

Copy link
Copy Markdown
Contributor

Proposal is stage 3 now, assuming no other reviews are forthcoming.

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.

2 participants