mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
16 lines
617 B
JavaScript
16 lines
617 B
JavaScript
import _Object$create from "core-js-pure/features/object/create.js";
|
|
import _Object$defineProperty from "core-js-pure/features/object/define-property.js";
|
|
import setPrototypeOf from "./setPrototypeOf.js";
|
|
function _inherits(t, e) {
|
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
t.prototype = _Object$create(e && e.prototype, {
|
|
constructor: {
|
|
value: t,
|
|
writable: !0,
|
|
configurable: !0
|
|
}
|
|
}), _Object$defineProperty(t, "prototype", {
|
|
writable: !1
|
|
}), e && setPrototypeOf(t, e);
|
|
}
|
|
export { _inherits as default }; |