-
-
Notifications
You must be signed in to change notification settings - Fork 5
Handling of let/const/var #38
Copy link
Copy link
Open
Labels
scope: forspecSpec definition for non-well defined behaviorsSpec definition for non-well defined behaviors
Milestone
Description
Scope
for
What do you want to define?
Currently the *for parser is able to parse all of them:
Line 45 in 43d5c96
| 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
scope: forspecSpec definition for non-well defined behaviorsSpec definition for non-well defined behaviors