* feat: materialize class features * chore: move testcases to es2022 * chore: update test fixtures * chore: remove classPr\w+ from options.json * chore: remove empty options.json * update flow test allowlist * update typescript allowlist
14 lines
213 B
JavaScript
14 lines
213 B
JavaScript
class Foo {
|
|
async* #readLines(path) {
|
|
let file = await fileOpen(path);
|
|
|
|
try {
|
|
while (!file.EOF) {
|
|
yield await file.readLine();
|
|
}
|
|
} finally {
|
|
await file.close();
|
|
}
|
|
}
|
|
}
|