2014-10-11 22:33:08 +11:00

16 lines
303 B
JavaScript

var Test = function (Foo) {
function Test() {
Foo.apply(this, arguments);
}
Test.prototype = Object.create(Foo.prototype, {
constructor: {
value: Test,
enumerable: false,
writable: true,
configurable: true
}
});
Test.__proto__ = Foo;
return Test;
}(Foo);