Skip to content

Commit cafdcfa

Browse files
committed
JS: Preserve reflective calls in getAMethodCall
1 parent 1703ffe commit cafdcfa

File tree

1 file changed

+1
-1
lines changed
  • javascript/ql/src/semmle/javascript/dataflow

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/dataflow/Sources.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ private module Cached {
245245
*/
246246
cached
247247
predicate isSyntacticMethodCall(DataFlow::CallNode call) {
248-
call.asExpr().(CallExpr).getCallee().getUnderlyingReference() instanceof PropAccess
248+
call.getCalleeNode().asExpr().getUnderlyingReference() instanceof PropAccess
249249
}
250250
}
251251

0 commit comments

Comments
 (0)