babel/lib/6to5/templates/extends.js
2014-10-23 08:59:52 +11:00

12 lines
236 B
JavaScript

(function (child, parent) {
child.prototype = Object.create(parent.prototype, {
constructor: {
value: child,
enumerable: false,
writable: true,
configurable: true
}
});
child.__proto__ = parent;
})