File tree Expand file tree Collapse file tree
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1650,5 +1650,9 @@ class RegExpCreationNode extends DataFlow::SourceNode {
16501650 }
16511651
16521652 /** Gets a data flow node referring to this regular expression. */
1653- DataFlow:: SourceNode getAReference ( ) { result = this .getAReference ( DataFlow:: TypeTracker:: end ( ) ) }
1653+ cached
1654+ DataFlow:: SourceNode getAReference ( ) {
1655+ Stages:: FlowSteps:: ref ( ) and
1656+ result = this .getAReference ( DataFlow:: TypeTracker:: end ( ) )
1657+ }
16541658}
Original file line number Diff line number Diff line change @@ -238,6 +238,8 @@ module Stages {
238238 AccessPath:: DominatingPaths:: hasDominatingWrite ( _)
239239 or
240240 DataFlow:: SharedFlowStep:: step ( _, _)
241+ or
242+ exists ( any ( DataFlow:: RegExpCreationNode e ) .getAReference ( ) )
241243 }
242244 }
243245
You can’t perform that action at this time.
0 commit comments