TypeScript Version:
TypeScript versions below 4.0 are not affected.
Search Terms: try/catch, destructuring, type annotation
Code
async function bork() {
try {
await woof();
} catch ({ message } : any) {
// ^-- language server goes down after typing this symbol ":"
return message;
}
}
Expected behavior:
No uncaught errors.
Actual behavior:
The language server is down because of an uncaught exception.
TypeError: Cannot read property 'flags' of undefined
Playground Link:
Is here.