We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c6134d commit 6648e27Copy full SHA for 6648e27
1 file changed
javascript/ql/test/library-tests/CustomLoadStoreSteps/test.ql
@@ -13,7 +13,11 @@ class Configuration extends TaintTracking::Configuration {
13
14
// When the source code states that "foo" is being read, "bar" is additionally being read.
15
override predicate isAdditionalLoadStep(DataFlow::Node pred, DataFlow::Node succ, string prop) {
16
- pred.(DataFlow::SourceNode).getAPropertyRead("foo") = succ and prop = "bar"
+ exists(DataFlow::PropRead read | read = succ |
17
+ read.getBase() = pred and
18
+ read.getPropertyName() = "foo"
19
+ ) and
20
+ prop = "bar"
21
}
22
23
0 commit comments