Mauro Bringolf 92fc26d399 Remove check-constants plugin (#6987)
* Rebased onto new version

* Moved constants check into a separate method
2018-01-26 10:43:09 -05:00

10 lines
160 B
JavaScript

function f() {
const a = "foo";
if (false) a = "false";
return a;
}
assert.equal(f(), "foo", 'Const violation in not taken branch should be ignored.')