File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
semmle/javascript/dataflow Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 55import javascript
66
77/**
8- * Holds if `config` matches `spec`, that is, either `spec` is the name of `config`
8+ * Holds if `config` matches `spec`, that is, either `spec` is the ID of `config`
99 * or `spec` is the empty string and `config` is an arbitrary configuration.
1010 */
1111predicate configSpec ( DataFlow:: Configuration config , string spec ) {
12- config .toString ( ) = spec
12+ config .getId ( ) = spec
1313 or
1414 spec = ""
1515}
Original file line number Diff line number Diff line change @@ -86,6 +86,12 @@ abstract class Configuration extends string {
8686 bindingset [ this ]
8787 Configuration ( ) { any ( ) }
8888
89+ /**
90+ * Gets the unique identifier of this configuration among all data flow tracking
91+ * configurations.
92+ */
93+ string getId ( ) { result = this }
94+
8995 /**
9096 * Holds if `source` is a relevant data flow source for this configuration.
9197 */
You can’t perform that action at this time.
0 commit comments