From fd65eeba0adb1fcc29517e6a839ae43397c9695b Mon Sep 17 00:00:00 2001 From: Asger F Date: Thu, 9 Oct 2025 13:46:53 +0200 Subject: [PATCH] JS: Make use() and rhs() uncached and private --- javascript/ql/lib/semmle/javascript/ApiGraphs.qll | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/javascript/ql/lib/semmle/javascript/ApiGraphs.qll b/javascript/ql/lib/semmle/javascript/ApiGraphs.qll index 6b3cb4b832d..5a4bdd6243d 100644 --- a/javascript/ql/lib/semmle/javascript/ApiGraphs.qll +++ b/javascript/ql/lib/semmle/javascript/ApiGraphs.qll @@ -815,8 +815,7 @@ module API { * Holds if `rhs` is the right-hand side of a definition of a node that should have an * incoming edge from `base` labeled `lbl` in the API graph. */ - cached - predicate rhs(TApiNode base, Label::ApiLabel lbl, DataFlow::Node rhs) { + private predicate rhs(TApiNode base, Label::ApiLabel lbl, DataFlow::Node rhs) { hasSemantics(rhs) and ( base = MkRoot() and