Skip to content

Commit 55565a5

Browse files
committed
don't use getEnclosingStmt
1 parent 34d6a4d commit 55565a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/GlobalAccessPaths.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ module AccessPath {
444444
ref = getAccessTo(root, path, _) and
445445
ref.getBasicBlock() = bb
446446
|
447-
ref order by any(int i | ref.asExpr().getEnclosingStmt() = bb.getNode(i))
447+
ref order by any(int i | ref.asExpr() = bb.getNode(i))
448448
) and
449449
result = getAccessTo(root, path, type)
450450
}

0 commit comments

Comments
 (0)