TypeScript/tests/baselines/reference/computedPropertyNames29.js

27 lines
500 B
JavaScript
Raw Normal View History

//// [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;
})();