339 B
339 B
Support async do expressions proposal (#10813 by @sosukesuzuki)
https://github.com/tc39/proposal-async-do-expressions
// Input
const x = async do {
await requestAPI().json();
};
// Prettier stable
SyntaxError: Unexpected token, expected ";" (1:17)
// Prettier main
const x = async do {
await requestAPI().json();
};