1 | import _Object$setPrototypeOf from "../../core-js/object/set-prototype-of";
|
2 | import _Object$create from "../../core-js/object/create";
|
3 | export default function _inherits(subClass, superClass) {
|
4 | if (typeof superClass !== "function" && superClass !== null) {
|
5 | throw new TypeError("Super expression must either be null or a function");
|
6 | }
|
7 |
|
8 | subClass.prototype = _Object$create(superClass && superClass.prototype, {
|
9 | constructor: {
|
10 | value: subClass,
|
11 | enumerable: false,
|
12 | writable: true,
|
13 | configurable: true
|
14 | }
|
15 | });
|
16 | if (superClass) _Object$setPrototypeOf ? _Object$setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
17 | } |
\ | No newline at end of file |