mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-12-23 22:13:48 +01:00
18 lines
597 B
JavaScript
18 lines
597 B
JavaScript
|
/* */
|
||
|
"use strict";
|
||
|
var _Object$create = require("../core-js/object/create")["default"];
|
||
|
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);
|
||
|
}
|
||
|
subClass.prototype = _Object$create(superClass && superClass.prototype, {constructor: {
|
||
|
value: subClass,
|
||
|
enumerable: false,
|
||
|
writable: true,
|
||
|
configurable: true
|
||
|
}});
|
||
|
if (superClass)
|
||
|
subClass.__proto__ = superClass;
|
||
|
};
|
||
|
exports.__esModule = true;
|