Skip to content

How to handle declarations with unused definitions #1

Description

@dmholtz

Given a JS program like

var x = 9;
x = 10;
console.log(x); // slicing criterion

Should the unnecessary define in line 1 be included?

var x = 9;
x = 10;
console.log(x); // slicing criterion

or instead removed?

var x;
x = 10;
console.log(x); // slicing criterion

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

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions