(parent, init)
| 2578 | } |
| 2579 | |
| 2580 | function createClass(parent, init) { |
| 2581 | let klass = function (...args) { |
| 2582 | if (!(this instanceof klass)) { |
| 2583 | return new klass(...args); |
| 2584 | } |
| 2585 | init.apply(this, args); |
| 2586 | }; |
| 2587 | inherits(klass, parent); |
| 2588 | return klass; |
| 2589 | } |
| 2590 | |
| 2591 | // OK, so here's the deal. Consider this code: |
| 2592 | // var db1 = new PouchDB('foo'); |
no test coverage detected
searching dependent graphs…