TypeScript/tests/baselines/reference/computedPropertyNames22_ES5.js
2015-02-03 17:43:31 -08:00

23 lines
417 B
JavaScript

//// [computedPropertyNames22_ES5.ts]
class C {
bar() {
var obj = {
[this.bar()]() { }
};
return 0;
}
}
//// [computedPropertyNames22_ES5.js]
var C = (function () {
function C() {
}
C.prototype.bar = function () {
var obj = {
[this.bar()]: function () {
}
};
return 0;
};
return C;
})();