23 lines
604 B
JavaScript
23 lines
604 B
JavaScript
// Metro module 98 (f99).
|
|
import * as __setPrototypeOf from "./_setPrototypeOf";
|
|
module.exports = function _inherits(a0, a1) {
|
|
if (typeof a1 !== "function" && a1 !== null) {
|
|
throw new TypeError("Super expression must either be null or a function");
|
|
}
|
|
a0.prototype = Object.create(a1 ? a1.prototype : a1, {
|
|
constructor: {
|
|
value: a0,
|
|
writable: true,
|
|
configurable: true
|
|
}
|
|
});
|
|
Object.defineProperty(a0, "prototype", {
|
|
writable: false
|
|
});
|
|
if (a1) {
|
|
__setPrototypeOf(a0, a1);
|
|
}
|
|
};
|
|
module.exports.__esModule = true;
|
|
module.exports.default = module.exports;
|