(fun, err, res, PouchDB)
| 5639 | var queue = []; |
| 5640 | |
| 5641 | function tryCode(fun, err, res, PouchDB) { |
| 5642 | try { |
| 5643 | fun(err, res); |
| 5644 | } catch (err) { |
| 5645 | // Shouldn't happen, but in some odd cases |
| 5646 | // IndexedDB implementations might throw a sync |
| 5647 | // error, in which case this will at least log it. |
| 5648 | PouchDB.emit('error', err); |
| 5649 | } |
| 5650 | } |
| 5651 | |
| 5652 | function applyNext() { |
| 5653 | if (running || !queue.length) { |
no outgoing calls
no test coverage detected
searching dependent graphs…