3 ms·
If "handle error" in the catch involves rethrowing the error, or another error, or returning an error code from the function, the "finally" block is _still_ exe
by maskros 3y ago
If "handle error" in the catch involves rethrowing the error, or another error, or returning an error code from the function, the "finally" block is _still_ executed.
Here's a "fun" example in Javascript:
function foo() {
try {
return 42
} finally {
return "boo!"
}
}