Skip to content

Parse failure for await set() - cannot use "await" as identifier inside an async function #376

@giles-v

Description

@giles-v
import { parseModule } from "meriyah";

let code = `
let foo = async () => {
    bar();
    await set();
};
`;

const result = parseModule(code);
console.log(result);

If I remove the call to bar(), or rename set() to something else (e.g. setFn()), it parses without error.

meriyah@6.0.5.

Metadata

Metadata

Assignees

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