Parser regression: await in default value of parameter should be invalid
fisker opened this issue · 0 comments
fisker commented
Flow version: 0.198.1
Case 1:
async (x = await 2) => {};
Case 2:
async function foo() {
function bar(x = await 2) {}
}
Was found during updating flow-parser in Prettier prettier/prettier#14182