flow
flow copied to clipboard
Add destructuring to catch clause
Fixes #6636
I also moved location of error to be more accurate when there is type annotation
Not sure if this is considered type annotation?
try {
} catch ({message = 'foo'}) {
message // type is string
}
/cc @panagosg7 anything here?