mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
JavaScript: Fix parsing of asynchronous generator methods.
This commit is contained in:
@@ -57,3 +57,10 @@
|
||||
| es2018.js:18:1:20:1 | async f ... / ...\\n} | 2015 | generators |
|
||||
| es2018.js:18:1:20:1 | async f ... / ...\\n} | 2017 | async/await |
|
||||
| es2018.js:18:1:20:1 | async f ... / ...\\n} | 2018 | asynchronous iteration |
|
||||
| es2018.js:22:1:25:1 | class C ... () {}\\n} | 2015 | class |
|
||||
| es2018.js:23:19:23:23 | () {} | 2015 | generators |
|
||||
| es2018.js:23:19:23:23 | () {} | 2017 | async/await |
|
||||
| es2018.js:23:19:23:23 | () {} | 2018 | asynchronous iteration |
|
||||
| es2018.js:24:32:24:36 | () {} | 2015 | generators |
|
||||
| es2018.js:24:32:24:36 | () {} | 2017 | async/await |
|
||||
| es2018.js:24:32:24:36 | () {} | 2018 | asynchronous iteration |
|
||||
|
||||
@@ -18,3 +18,8 @@ async function foo() {
|
||||
async function* readLines(path) {
|
||||
// ...
|
||||
}
|
||||
|
||||
class C {
|
||||
async *asyncMeth() {}
|
||||
async *[Symbol.asyncIterator]() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user