Skip to content

Async/await syntax for normal functions doesn't work  #63

@Andrii-Antoniuk

Description

@Andrii-Antoniuk

Currently, using the syntax below will throw an error:

Screenshot

image

export async function funcName(){
    await someAsyncFunc()
}

After refactoring to the syntax below everything will work as expected:

export const funcName =  async() => {
    await someAsyncFunc()
}

Expected output:
Non-arrow async functions work too

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions