Skip to content

Commit 82cf538

Browse files
erik-kroghasgerf
andauthored
TypeOfCheck -> TypeOfUndefinedSanitizer
Co-authored-by: Asger F <[email protected]>
1 parent 05d7be8 commit 82cf538

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,11 +828,11 @@ module TaintTracking {
828828
}
829829

830830
/** A check of the form `type x === "undefined"`, which sanitized `x` in its "then" branch. */
831-
class TypeOfCheck extends AdditionalSanitizerGuardNode, DataFlow::ValueNode {
831+
class TypeOfUndefinedSanitizer extends AdditionalSanitizerGuardNode, DataFlow::ValueNode {
832832
Expr x;
833833
override EqualityTest astNode;
834834

835-
TypeOfCheck() {
835+
TypeOfUndefinedSanitizer() {
836836
exists(StringLiteral str, TypeofExpr typeof | astNode.hasOperands(str, typeof) |
837837
str.getValue() = "undefined" and
838838
typeof.getOperand() = x

0 commit comments

Comments
 (0)