New issue
Advanced search Search tips

Issue 878015 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

[chromeperf v2] Use async generator methods

Project Member Reported by sbalana@google.com, Aug 27

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
 
Cc: benjhayden@chromium.org
Components: Speed>Dashboard
Status: Available (was: Unconfirmed)
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