TypeScript/tests/baselines/reference/computedPropertyNamesDeclarationEmit2.js

34 lines
717 B
JavaScript
Raw Normal View History

//// [computedPropertyNamesDeclarationEmit2.ts]
class C {
static ["" + ""]() { }
static get ["" + ""]() { return 0; }
static set ["" + ""](x) { }
}
//// [computedPropertyNamesDeclarationEmit2.js]
var C = (function () {
function C() {
}
C["" + ""] = function () {
};
Object.defineProperty(C, "" + "", {
get: function () {
return 0;
},
enumerable: true,
configurable: true
});
Object.defineProperty(C, "" + "", {
set: function (x) {
},
enumerable: true,
configurable: true
});
return C;
})();
//// [computedPropertyNamesDeclarationEmit2.d.ts]
declare class C {
}