Skip to content

Do not rewrite getters for unused variables #3

@onsetsu

Description

@onsetsu

If we have a local variable (could also be a function parameter), that is not assigned (i.e. no setter for that variable), then we also should not inject a getter. E.g.:

let v = 42;
aexpr(() => v);

Without an assignment to v such as v = 17, we do not need to track v for changes!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions