Skip to content

Commit abd58ba

Browse files
committed
rename 'getThrowsToNode' to 'getExceptionalNode'
1 parent 9fa7393 commit abd58ba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-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 exceptional data-flow will flow if this expression
251251
* causes an exception to be thrown.
252252
*/
253-
DataFlow::Node getThrowsToNode() {
253+
DataFlow::Node getExceptionalNode() {
254254
if exists(this.getEnclosingStmt().getEnclosingTryCatchStmt())
255255
then
256256
result = DataFlow::parameterNode(this

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ predicate localExceptionStep(DataFlow::Node pred, DataFlow::Node succ) {
6666
or
6767
DataFlow::exceptionalInvocationReturnNode(pred, expr)
6868
|
69-
succ = expr.getThrowsToNode()
69+
succ = expr.getExceptionalNode()
7070
)
7171
}
7272

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().getThrowsToNode() and
76+
succ = pred.asExpr().getExceptionalNode() 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)