[chromeperf v2] Use async generator methods |
|
Issue description
All service worker code is unable to use asynchronous generator methods due to the Webpack ES6 parser, terser, not supporting it.
I've submitted a PR on terser's GitHub repository to add support for asynchronous generator methods. Once the PR is merged, code can be converted from this format:
class Foo {
get bar() {
return async function* () {
// ...
};
}
}
to this format:
class Foo {
async* bar() {
// ...
}
}
https://github.com/fabiosantoscode/terser/issues/97
,
Aug 31
The PR has been merged. I am waiting for terser's owner to publish a new npm package with the new feature. |
|
►
Sign in to add a comment |
|
Comment 1 by benjhayden@chromium.org
, Aug 27Components: Speed>Dashboard
Status: Available (was: Unconfirmed)