Skip to content

Commit e326dd4

Browse files
author
Max Schaefer
committed
JavaScript: Add TaintKind as an alias to FlowLabel.
1 parent 86ee58d commit e326dd4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

javascript/ql/src/semmle/javascript/dataflow/Configuration.qll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@ abstract class FlowLabel extends string {
220220
bindingset[this] FlowLabel() { any() }
221221
}
222222

223+
/**
224+
* A kind of taint tracked by a taint-tracking configuration.
225+
*
226+
* This is an alias of `FlowLabel`, so the two types can be used interchangeably.
227+
*/
228+
class TaintKind = FlowLabel;
229+
223230
/**
224231
* A standard flow label, that is, either `FlowLabel::data()` or `FlowLabel::taint()`.
225232
*/

0 commit comments

Comments
 (0)