JS: Ignore delete expressions in js/missing-await

This commit is contained in:
Asger Feldthaus
2020-04-02 11:26:04 +01:00
parent ccce0205b4
commit 3a9d047cf5
2 changed files with 2 additions and 2 deletions

View File

@@ -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()