Skip to content

Handling of let/const/var #38

@lowlighter

Description

@lowlighter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: forspecSpec definition for non-well defined behaviors

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions