Projekt

Obecné

Profil

Stáhnout (1.08 KB) Statistiky
| Větev: | Revize:
1 3a515b92 cagy
"use strict";
2
3
exports.__esModule = true;
4
5
var _setPrototypeOf = require("../core-js/object/set-prototype-of");
6
7
var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
8
9
var _create = require("../core-js/object/create");
10
11
var _create2 = _interopRequireDefault(_create);
12
13
var _typeof2 = require("../helpers/typeof");
14
15
var _typeof3 = _interopRequireDefault(_typeof2);
16
17
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
19
exports.default = function (subClass, superClass) {
20
  if (typeof superClass !== "function" && superClass !== null) {
21
    throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass)));
22
  }
23
24
  subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
25
    constructor: {
26
      value: subClass,
27
      enumerable: false,
28
      writable: true,
29
      configurable: true
30
    }
31
  });
32
  if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
33
};