Skip to content

Commit 2033bf8

Browse files
author
Esben Sparre Andreasen
committed
JS: address docstring review comments
1 parent bd2fc33 commit 2033bf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/Declarations/DeadStoreOfProperty.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Expressions.DOMProperties
1313
import DeadStore
1414

1515
/**
16-
* Holds if `assign` definitely assigns property `name` of `base`.
16+
* Holds if `write` writes to property `name` of `base`, and `base` is the only base object of `write`.
1717
*/
1818
predicate unambiguousPropWrite(DataFlow::SourceNode base, string name, DataFlow::PropWrite write) {
1919
write = base.getAPropertyWrite(name) and
@@ -83,7 +83,7 @@ predicate maybeAccessesAssignedPropInBlock(string name, DataFlow::PropWrite assi
8383
}
8484

8585
/**
86-
* Holds if `assign1` and `assign2` both assign property `name`, and the assigned property may be accessed between the two assignments.
86+
* Holds if `assign1` and `assign2` both assign property `name`, and the assigned property is not accessed between the two assignments.
8787
*/
8888
bindingset[name]
8989
predicate noPropAccessBetween(string name, DataFlow::PropWrite assign1, DataFlow::PropWrite assign2) {

0 commit comments

Comments
 (0)