(prototype)
| 631 | |
| 632 | // An internal function for creating a new object that inherits from another. |
| 633 | function baseCreate(prototype) { |
| 634 | if (!isObject(prototype)) return {}; |
| 635 | if (nativeCreate) return nativeCreate(prototype); |
| 636 | var Ctor = ctor(); |
| 637 | Ctor.prototype = prototype; |
| 638 | var result = new Ctor; |
| 639 | Ctor.prototype = null; |
| 640 | return result; |
| 641 | } |
| 642 | |
| 643 | // Creates an object that inherits from the given prototype object. |
| 644 | // If additional properties are provided then they will be added to the |
no test coverage detected
searching dependent graphs…