(parent, init)
| 2742 | } |
| 2743 | |
| 2744 | function createClass(parent, init) { |
| 2745 | let klass = function (...args) { |
| 2746 | if (!(this instanceof klass)) { |
| 2747 | return new klass(...args); |
| 2748 | } |
| 2749 | init.apply(this, args); |
| 2750 | }; |
| 2751 | inherits(klass, parent); |
| 2752 | return klass; |
| 2753 | } |
| 2754 | |
| 2755 | // OK, so here's the deal. Consider this code: |
| 2756 | // var db1 = new PouchDB('foo'); |
no test coverage detected
searching dependent graphs…