16 lines
308 B
JavaScript
16 lines
308 B
JavaScript
//// [parserAccessors2.ts]
|
|
class C {
|
|
set Foo(a) { }
|
|
}
|
|
|
|
//// [parserAccessors2.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
Object.defineProperty(C.prototype, "Foo", {
|
|
set: function (a) { },
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
return C;
|
|
})();
|