inheritsLoose.js 259 B

123456
  1. import setPrototypeOf from "./setPrototypeOf.js";
  2. export default function _inheritsLoose(subClass, superClass) {
  3. subClass.prototype = Object.create(superClass.prototype);
  4. subClass.prototype.constructor = subClass;
  5. setPrototypeOf(subClass, superClass);
  6. }