You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
"use strict"; |
|
|
|
exports.__esModule = true; |
|
|
|
var _setPrototypeOf = require("../core-js/object/set-prototype-of"); |
|
|
|
var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); |
|
|
|
var _create = require("../core-js/object/create"); |
|
|
|
var _create2 = _interopRequireDefault(_create); |
|
|
|
var _typeof2 = require("../helpers/typeof"); |
|
|
|
var _typeof3 = _interopRequireDefault(_typeof2); |
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
|
|
|
exports.default = function (subClass, superClass) { |
|
if (typeof superClass !== "function" && superClass !== null) { |
|
throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); |
|
} |
|
|
|
subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { |
|
constructor: { |
|
value: subClass, |
|
enumerable: false, |
|
writable: true, |
|
configurable: true |
|
} |
|
}); |
|
if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; |
|
}; |