I still like the good old:
try {
...
} catch (o_0) {
handleException();
}

-
-
-
try { doSomethingThatMightThrow(); } catch (ಠ_ಠ) { handleException(); } It’s valid JavaScript! https://mathiasbynens.be/notes/javascript-identifiers …
End of conversation
New conversation -
-
-
I want a try without a catch... try { mightThrow(); } doMoreStuff(); Sometimes things throw because they already exist and that's OK, checking if they already exist is boring...pic.twitter.com/cW0O6P3C4g
-
For your case `finally` does seem to be suitable unless you are `return`ing from inside of `try { ... }`, doesn't it?
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.