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