4 ms·
According to the linked article, the second one will not run do_something_finall() since it is after the return statement. The second one however will... Note,
by MindTwister 16y ago
According to the linked article, the second one will not run do_something_finall() since it is after the return statement. The second one however will...
Note, this does seem to be the case for javascript:
With finally
http://jsfiddle.net/J5Cjt/ http://jsfiddle.net/J5Cjt/
Without finally
http://jsfiddle.net/C2vg7/ http://jsfiddle.net/C2vg7/