inheritsLoose.js 335 B

1234567
  1. import _Object$create from "@babel/runtime-corejs3/core-js/object/create";
  2. import setPrototypeOf from "./setPrototypeOf.js";
  3. export default function _inheritsLoose(subClass, superClass) {
  4. subClass.prototype = _Object$create(superClass.prototype);
  5. subClass.prototype.constructor = subClass;
  6. setPrototypeOf(subClass, superClass);
  7. }