Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc7753d

Browse files
committed
JS: Remove non-deprecated reference to AdditionalBarrierGuardNode
1 parent 0cd2e3f commit bc7753d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

javascript/ql/lib/semmle/javascript/dataflow/internal/DataFlowPrivate.qll

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,10 +1055,14 @@ private predicate sameContainerAsEnclosingContainer(Node node, Function fun) {
10551055
node.getContainer() = fun.getEnclosingContainer()
10561056
}
10571057

1058-
private class BarrierGuardAdapter extends DataFlow::Node instanceof DataFlow::AdditionalBarrierGuardNode
1059-
{
1058+
abstract private class BarrierGuardAdapter extends DataFlow::Node {
10601059
// Note: avoid depending on DataFlow::FlowLabel here as it will cause these barriers to be re-evaluated
1061-
predicate blocksExpr(boolean outcome, Expr e) { super.blocks(outcome, e) }
1060+
predicate blocksExpr(boolean outcome, Expr e) { none() }
1061+
}
1062+
1063+
deprecated private class BarrierGuardAdapterSubclass extends BarrierGuardAdapter instanceof DataFlow::AdditionalBarrierGuardNode
1064+
{
1065+
override predicate blocksExpr(boolean outcome, Expr e) { super.blocks(outcome, e) }
10621066
}
10631067

10641068
/**

0 commit comments

Comments
 (0)