Which fix removes the bug?
try {
await work();
} catch (e) {
retry();
} finally {
return 'done';
}
- Return outside finally
- Rethrow inside catch
- Await the retry call
- Drop the catch block
A return in
Play Problem Solving ▸
finally overrides any pending return or thrown error, swallowing failures.