1 | var _Object$create = require("core-js/library/fn/object/create.js");
|
2 | var _Object$defineProperty = require("core-js/library/fn/object/define-property.js");
|
3 | var setPrototypeOf = require("./setPrototypeOf.js");
|
4 | function _inherits(subClass, superClass) {
|
5 | if (typeof superClass !== "function" && superClass !== null) {
|
6 | throw new TypeError("Super expression must either be null or a function");
|
7 | }
|
8 | subClass.prototype = _Object$create(superClass && superClass.prototype, {
|
9 | constructor: {
|
10 | value: subClass,
|
11 | writable: true,
|
12 | configurable: true
|
13 | }
|
14 | });
|
15 | _Object$defineProperty(subClass, "prototype", {
|
16 | writable: false
|
17 | });
|
18 | if (superClass) setPrototypeOf(subClass, superClass);
|
19 | }
|
20 | module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
\ | No newline at end of file |