fast-async icon indicating copy to clipboard operation
fast-async copied to clipboard

`for await` is not supported to be transformed

Open JounQin opened this issue 4 years ago • 3 comments

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?

JounQin avatar Jun 23 '21 04:06 JounQin

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

Rush avatar Jun 23 '21 04:06 Rush

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

MatAtBread avatar Sep 30 '21 13:09 MatAtBread

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?

JounQin avatar Sep 30 '21 13:09 JounQin