Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccce020 commit 3a9d047Copy full SHA for 3a9d047
2 files changed
javascript/ql/src/Expressions/MissingAwait.ql
@@ -45,7 +45,8 @@ predicate isBadPromiseContext(Expr expr) {
45
or
46
exists(UnaryExpr e |
47
expr = e.getOperand() and
48
- not e instanceof VoidExpr
+ not e instanceof VoidExpr and
49
+ not e instanceof DeleteExpr
50
)
51
52
expr = any(UpdateExpr e).getOperand()
javascript/ql/test/query-tests/Expressions/MissingAwait/MissingAwait.expected
@@ -1,4 +1,3 @@
1
-| tsTest.ts:4:12:4:19 | cache[x] | Missing await. This value is always a promise. |
2
| tst.js:8:9:8:13 | thing | Missing await. The value 'thing' is always a promise. |
3
| tst.js:10:9:10:13 | thing | Missing await. The value 'thing' is always a promise. |
4
| tst.js:12:15:12:19 | thing | Missing await. The value 'thing' is always a promise. |
0 commit comments