Update javascript/ql/src/semmle/javascript/frameworks/LazyCache.qll

Co-Authored-By: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
Asger F
2020-04-08 10:30:21 +01:00
committed by GitHub
parent 171b131eb1
commit 4acb9da2cf

View File

@@ -62,6 +62,7 @@ module LazyCache {
result = this.flow()
or
exists(LazyCacheVariable variable, Expr base, PropAccess access, string localName |
// To avoid recursion, this should not depend on `SourceNode`.
variable = getVariable() and
base = variable.getAnAccess() and
access.getBase() = base and