TypeScript/tests/baselines/reference/parserComputedPropertyName40.js

14 lines
245 B
JavaScript
Raw Normal View History

2014-11-27 05:10:49 +01:00
//// [parserComputedPropertyName40.ts]
class C {
[a ? "" : ""]() {}
}
//// [parserComputedPropertyName40.js]
var C = (function () {
function C() {
}
C.prototype[a ? "" : ""] = function () {
};
return C;
})();