콘텐츠로 이동

ZNTC0901: 'await' expression is not allowed in formal parameters

‘await’ expression is not allowed in formal parameters

카테고리: 파서: await/yield/JSX/TS

async function f(x = await 1) {}

Playground에서 재현하기 →

이 에러의 원인과 해결 방법은 에러 메시지를 참고하세요.