14 lines
247 B
JavaScript
14 lines
247 B
JavaScript
var Test = function (Foo) {
|
|
function Test() {
|
|
}
|
|
Test.prototype = Object.create(Foo.prototype, {
|
|
constructor: {
|
|
value: Test,
|
|
enumerable: false,
|
|
writable: true,
|
|
configurable: true
|
|
}
|
|
});
|
|
return Test;
|
|
}(Foo);
|