You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
146 B

  1. module.exports = function(a, b){
  2. var fn = function(){};
  3. fn.prototype = b.prototype;
  4. a.prototype = new fn;
  5. a.prototype.constructor = a;
  6. };