mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
JS: Add test
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
| tsTest.ts:4:12:4:19 | cache[x] | Missing await. This value is always a promise. |
|
||||
| tst.js:8:9:8:13 | thing | Missing await. The value 'thing' is always a promise. |
|
||||
| tst.js:10:9:10:13 | thing | Missing await. The value 'thing' is always a promise. |
|
||||
| tst.js:12:15:12:19 | thing | Missing await. The value 'thing' is always a promise. |
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
declare let cache: { [x: string]: Promise<any> };
|
||||
|
||||
function deleteCache(x: string) {
|
||||
delete cache[x]; // OK
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"include": ["."]
|
||||
}
|
||||
Reference in New Issue
Block a user