Skip to content

[CS2] async/await doesn't transpile? #4398

Closed
@kenOfYugen

Description

@kenOfYugen

I was trying out the 2 branch. According to Progress as of December 2016, async/await is in.

Using the coffee --nodejs --harmony-async-await script.coffee command to run code works fine.

Transforming it to JS via coffee --nodejs --harmony-async-await -c script.coffee, the resulting code lacks all async statements! Am I doing something wrong?

And of course [email protected] complains with ReferenceError: await is not defined.
I saw the #4351 contains an example of transpiled code, is the code written by hand?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions