mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
JS: Ignore delete expressions in js/missing-await
This commit is contained in:
@@ -45,7 +45,8 @@ predicate isBadPromiseContext(Expr expr) {
|
||||
or
|
||||
exists(UnaryExpr e |
|
||||
expr = e.getOperand() and
|
||||
not e instanceof VoidExpr
|
||||
not e instanceof VoidExpr and
|
||||
not e instanceof DeleteExpr
|
||||
)
|
||||
or
|
||||
expr = any(UpdateExpr e).getOperand()
|
||||
|
||||
Reference in New Issue
Block a user