Re:TypeScript 3.7
by Jasper_ on Tuesday November 05, 2019 @10:03PM
(#21459376)
They're not equivalent if doSomething might throw and you don't want to catch it.
[ Parent
| on HN ]
Right, which goes back to the question shtylman asked about why doSomething couldn't be part of the try block. I'm tossing this form out there in case it helps. People sometimes forget that await can go wherever an expression goes.