TypeScript/tests/baselines/reference/computedPropertyNames22_ES6.js

23 lines
393 B
JavaScript
Raw Normal View History

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