ahomu 9f267e54a9 fix typo writable
s/writeable/writable
2014-10-13 17:18:56 +09:00

26 lines
502 B
JavaScript

var Test = function(Foo) {
var Test = function Test() {
Foo.prototype.test.whatever();
Foo.prototype.test.call(this);
};
Test.prototype = Object.create(Foo.prototype, {
constructor: {
value: Test,
enumerable: false,
writable: true,
configurable: true
}
});
Test.__proto__ = Foo;
Object.defineProperties(Test, {
test: {
writable: true,
value: function() {
return Foo.wow.call(this);
}
}
});
return Test;
}(Foo);