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

Skip to content

Commit b9d9188

Browse files
committed
JS: PromiseStep
1 parent a39cb74 commit b9d9188

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

javascript/ql/src/semmle/javascript/Promises.qll

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -459,13 +459,9 @@ predicate promiseTaintStep(DataFlow::Node pred, DataFlow::Node succ) {
459459
/**
460460
* An additional taint step that involves promises.
461461
*/
462-
private class PromiseTaintStep extends TaintTracking::AdditionalTaintStep {
463-
DataFlow::Node source;
464-
465-
PromiseTaintStep() { promiseTaintStep(source, this) }
466-
462+
private class PromiseTaintStep extends TaintTracking::SharedTaintStep {
467463
override predicate step(DataFlow::Node pred, DataFlow::Node succ) {
468-
pred = source and succ = this
464+
promiseTaintStep(pred, succ)
469465
}
470466
}
471467

0 commit comments

Comments
 (0)