TypeScript/tests/baselines/reference/parserComputedPropertyName40.js

13 lines
240 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;
})();