(Class)
| 113 | return Function.toString.call(fn).indexOf("[native code]") !== -1; |
| 114 | } |
| 115 | function _wrapNativeSuper(Class) { |
| 116 | var _cache = typeof Map === "function" ? new Map() : undefined; |
| 117 | _wrapNativeSuper = function _wrapNativeSuper(Class) { |
| 118 | if (Class === null || !_isNativeFunction(Class)) return Class; |
| 119 | if (typeof Class !== "function") { |
| 120 | throw new TypeError("Super expression must either be null or a function"); |
| 121 | } |
| 122 | if (typeof _cache !== "undefined") { |
| 123 | if (_cache.has(Class)) return _cache.get(Class); |
| 124 | _cache.set(Class, Wrapper); |
| 125 | } |
| 126 | function Wrapper() { |
| 127 | return _construct(Class, arguments, _getPrototypeOf(this).constructor); |
| 128 | } |
| 129 | Wrapper.prototype = Object.create(Class.prototype, { |
| 130 | constructor: { |
| 131 | value: Wrapper, |
| 132 | enumerable: false, |
| 133 | writable: true, |
| 134 | configurable: true |
| 135 | } |
| 136 | }); |
| 137 | return _setPrototypeOf(Wrapper, Class); |
| 138 | }; |
| 139 | return _wrapNativeSuper(Class); |
| 140 | } |
| 141 | function _assertThisInitialized(self) { |
| 142 | if (self === void 0) { |
| 143 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); |
no test coverage detected