ZNTC0901: 'await' expression is not allowed in formal parameters
ZNTC0901
Section titled “ZNTC0901”‘await’ expression is not allowed in formal parameters
Category: Parser: Await/Yield/JSX/TS
Reproduction
Section titled “Reproduction”async function f(x = await 1) {}How to fix
Section titled “How to fix”See the error message for cause and resolution.