TypeScript/tests/baselines/reference/parserComputedPropertyName40.js

14 lines
245 B
JavaScript
Raw Normal View History

2015-01-06 23:19:43 +01:00
//// [parserComputedPropertyName40.ts]
class C {
[a ? "" : ""]() {}
}
//// [parserComputedPropertyName40.js]
var C = (function () {
function C() {
}
C.prototype[a ? "" : ""] = function () {
};
2015-01-06 23:19:43 +01:00
return C;
})();