Skip to content

why can't I use async / await #319

@npomfret

Description

@npomfret

If I try to use syntax like async (req, res) => {... in my firebase function I get the error below when deploying. I assume it's a language feature that's not supported yet?

error Parsing error: Unexpected token =>

Removing the async makes it go away...

However, I have a dependency in my package (ccxt) that does use the async / await syntax, and it works just fine. Why is this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions