We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f59e96 + cd4685c commit b4d4b51Copy full SHA for b4d4b51
2 files changed
javascript/ql/lib/semmle/javascript/dataflow/Nodes.qll
@@ -1684,5 +1684,9 @@ class RegExpCreationNode extends DataFlow::SourceNode {
1684
}
1685
1686
/** Gets a data flow node referring to this regular expression. */
1687
- DataFlow::SourceNode getAReference() { result = this.getAReference(DataFlow::TypeTracker::end()) }
+ cached
1688
+ DataFlow::SourceNode getAReference() {
1689
+ Stages::FlowSteps::ref() and
1690
+ result = this.getAReference(DataFlow::TypeTracker::end())
1691
+ }
1692
javascript/ql/lib/semmle/javascript/internal/CachedStages.qll
@@ -238,6 +238,8 @@ module Stages {
238
1 = 1
239
or
240
DataFlow::SharedFlowStep::step(_, _)
241
+ or
242
+ exists(any(DataFlow::RegExpCreationNode e).getAReference())
243
244
245
0 commit comments