Skip to content

Commit c2b48eb

Browse files
committed
rename getExceptionalNode to getExceptionTarget
1 parent d8a5554 commit c2b48eb

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

javascript/ql/src/semmle/javascript/Expr.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class Expr extends @expr, ExprOrStmt, ExprOrType, AST::ValueNode {
250250
* Gets the data-flow node where exceptions thrown by this expression will
251251
* propagate if this expression causes an exception to be thrown.
252252
*/
253-
DataFlow::Node getExceptionalNode() {
253+
DataFlow::Node getExceptionTarget() {
254254
if exists(this.getEnclosingStmt().getEnclosingTryCatchStmt())
255255
then
256256
result = DataFlow::parameterNode(this

javascript/ql/src/semmle/javascript/dataflow/internal/FlowSteps.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ predicate localExceptionStep(DataFlow::Node pred, DataFlow::Node succ) {
6666
or
6767
DataFlow::exceptionalInvocationReturnNode(pred, expr)
6868
|
69-
succ = expr.getExceptionalNode()
69+
succ = expr.getExceptionTarget
70+
()
7071
)
7172
}
7273

javascript/ql/src/semmle/javascript/security/dataflow/ExceptionXss.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module ExceptionXss {
7373
DataFlow::FlowLabel outlbl
7474
) {
7575
inlbl instanceof NotYetThrown and (outlbl.isTaint() or outlbl instanceof NotYetThrown) and
76-
succ = pred.asExpr().getExceptionalNode() and
76+
succ = pred.asExpr().getExceptionTarget() and
7777
canThrowSensitiveInformation(pred)
7878
or
7979
// All the usual taint-flow steps apply on data-flow before it has been thrown in an exception.

0 commit comments

Comments
 (0)