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