JavaScript: Fix parsing of asynchronous generator methods.

This commit is contained in:
Max Schaefer
2019-09-02 09:44:44 +01:00
parent 6d55d1f7c0
commit 91e46cd6fd
7 changed files with 769 additions and 1 deletions

View File

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

View File

@@ -18,3 +18,8 @@ async function foo() {
async function* readLines(path) {
// ...
}
class C {
async *asyncMeth() {}
async *[Symbol.asyncIterator]() {}
}