(action: () => void)
| 15 | } |
| 16 | |
| 17 | private write(action: () => void) { |
| 18 | if (this.failed) return; |
| 19 | |
| 20 | try { |
| 21 | action(); |
| 22 | } catch { |
| 23 | this.failed = true; |
| 24 | this.onError(); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | override set(table: string, changes: Change[]) { |
| 29 | this.write(() => super.set(table, changes)); |
no test coverage detected