Merge pull request #748 from esben-semmle/js/fix/js/useless-assignment-to-property

Approved by xiemaisi
This commit is contained in:
semmle-qlci
2019-01-13 21:40:35 +00:00
committed by GitHub
3 changed files with 17 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
(function(o1, o2){
o1.p = x ? x : x;
o1.p = o1.p + (x ? x : x);
o2.p = x ? x : x;
let v2 = o2.p + (x ? x : x);
o2.p = v;
let v1 = x? x: x;
o3.p = v;
o3.p = o3.p + (x ? x : x);
});