Skip to content

for await is not supported to be transformed #70

@JounQin

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?

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