-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
TypeScript Version:
- 4.0.2
- 4.1.0-dev.20200824
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:
Pomis and a-tarasyukExE-Boss, Pomis, a-tarasyuk and epiphone
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue