Skip to content

How to handle declarations with unused definitions #1

@dmholtz

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

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