simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

inheritsLoose.js (259B)


      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 }