TypeScript/tests/baselines/reference/parserES3Accessors1.js
2015-02-06 18:45:09 -08:00

17 lines
312 B
JavaScript

//// [parserES3Accessors1.ts]
class C {
get Foo() { }
}
//// [parserES3Accessors1.js]
var C = (function () {
function C() {
}
Object.defineProperty(C.prototype, "Foo", {
get: function () { },
enumerable: true,
configurable: true
});
return C;
})();