TypeScript/tests/baselines/reference/computedPropertyNames29.js
2015-02-06 18:45:09 -08:00

27 lines
500 B
JavaScript

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