4 ms·
I don't mean finally, because it'd be wrong for the reasons you list. catch however always unsets the result. If you don't manually throw or return from a catc
by jaffathecake 5y ago
I don't mean finally, because it'd be wrong for the reasons you list.
catch however always unsets the result. If you don't manually throw or return from a catch, then the result is an empty result (which is JavaScript is a return of undefined)
finally doesn't do anything automatically, but a throw or a return changes the result.