Skip to content

JS_DetectModule does not (always) detect TLA #606

@bnoordhuis

Description

@bnoordhuis

Works:

await Promise.resolve(42)

Does not work:

const p = Promise.resolve(42)
await p // SyntaxError: expecting ';'

Looks like 6dd2ce3 was only a partial fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions