flow icon indicating copy to clipboard operation
flow copied to clipboard

Add destructuring to catch clause

Open goodmind opened this issue 6 years ago • 2 comments

Fixes #6636

I also moved location of error to be more accurate when there is type annotation

goodmind avatar Aug 05 '19 15:08 goodmind

Not sure if this is considered type annotation?

try {

} catch ({message = 'foo'}) {
  message // type is string
}

goodmind avatar Aug 06 '19 22:08 goodmind

/cc @panagosg7 anything here?

goodmind avatar Sep 22 '19 23:09 goodmind