MatAtBread / fast-async

605 stars 21 forks source link

`for await` is not supported to be transformed #70

Open JounQin opened 3 years ago

JounQin commented 3 years ago

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?

Rush commented 3 years ago

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

MatAtBread commented 2 years ago

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

JounQin commented 2 years ago

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?