Skip to content

for await is not supported to be transformed #70

Open

Description

@JounQin

As title.

// source code
const main = async () => {
  for await (const i of [1, 2, 3]) {
    console.log(i);
  }
};

// compiled code
const main = () => new Promise(function ($return, $error) {
  for await (const i of [1, 2, 3]) {
    console.log(i);
  }
};

Is this project dead?

Activity

  1. Rush commented on Jun 23, 2021

    @Rush

    I think this project lost relevance due to better native implementations of async/await.

  2. MatAtBread commented on Sep 30, 2021

    @MatAtBread
    Owner

    Yes, it's pretty much dead. Most runtimes support async/await natively now, and I have no requirement to support legacy ones myself. If you want to fork & fix, go ahead

  3. JounQin commented on Sep 30, 2021

    @JounQin
    Author

    Yes, it's pretty much dead. Most runtimes support async/await natively now, and I have no requirement to support legacy ones myself. If you want to fork & fix, go ahead

    Thank you, that's fine. Can you document it or just achieve this repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions