(f)
| 195 | } |
| 196 | } |
| 197 | export function docMethodOp(f) { |
| 198 | return function() { |
| 199 | let cm = this.cm |
| 200 | if (!cm || cm.curOp) return f.apply(this, arguments) |
| 201 | startOperation(cm) |
| 202 | try { return f.apply(this, arguments) } |
| 203 | finally { endOperation(cm) } |
| 204 | } |
| 205 | } |
no test coverage detected