Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of let/const/var in *for #38

Open
lowlighter opened this issue Oct 26, 2024 · 0 comments
Open

Handling of let/const/var in *for #38

lowlighter opened this issue Oct 26, 2024 · 0 comments
Labels
spec Spec definition for non-well defined behaviors
Milestone

Comments

@lowlighter
Copy link
Owner

lowlighter commented Oct 26, 2024

Scope

for

What do you want to define?

Currently the *for parser is able to parse all of them:

this.#consume(/^(?:let|const|var) /)

But there are no special handling.

To discuss if it'd be revelant to implement something.
Since mizu doesn't really manipulates raw js (apart from *eval directive) the added value is quite limited I think.

One could imagining const preventing re-assigning, but for example technically *set just "shadows" the values (not a change), so yeah the expected behavior isn't clear for now

I have searched for existing issues

Yes

@lowlighter lowlighter added this to the future milestone Oct 26, 2024
@lowlighter lowlighter changed the title for: handling of let/const/var Handling of let/const/var in *for Oct 29, 2024
@lowlighter lowlighter added the spec Spec definition for non-well defined behaviors label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Spec definition for non-well defined behaviors
Projects
None yet
Development

No branches or pull requests

1 participant