Skip to content

Commit d813a7c

Browse files
author
Esben Sparre Andreasen
committed
JS: push negation
1 parent 470c241 commit d813a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/Declarations/DeadStoreOfProperty.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ predicate unambiguousPropWrite(DataFlow::SourceNode base, string name, Assignmen
2020
assign.getLhs().flow() = lhs and
2121
base.getAPropertyWrite(name) = lhs and
2222
not exists (DataFlow::SourceNode otherBase |
23-
not otherBase = base and
23+
otherBase != base and
2424
lhs = otherBase.getAPropertyWrite(name)
2525
)
2626
)

0 commit comments

Comments
 (0)