(a, b)
| 9 | } |
| 10 | |
| 11 | function reliableMultiply(a, b) { |
| 12 | for (;;) { |
| 13 | try { |
| 14 | return primitiveMultiply(a, b); |
| 15 | } catch (e) { |
| 16 | if (!(e instanceof MultiplicatorUnitFailure)) |
| 17 | throw e; |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | console.log(reliableMultiply(8, 8)); |
| 23 | // → 64 |
no test coverage detected