Skip to content

JS passes should remove local vars that are written but not read #10400

Description

@niloc132

On the Java side, ControlFlowAnalyzer looks at local variable refs across the program, finding writes with no reads, and removing them. Nothing seems to do this today on the JS side though, which can result in extra local vars that are assigned but unread or never even assigned.

In the example given by #10399, the inlined local variable directHandlers is only assigned but never read, and should be entirely removed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions