26 lines
541 B
JavaScript
26 lines
541 B
JavaScript
//// [computedPropertyNames29_ES5.ts]
|
|
class C {
|
|
bar() {
|
|
() => {
|
|
var obj = {
|
|
[this.bar()]() { } // needs capture
|
|
};
|
|
}
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
//// [computedPropertyNames29_ES5.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.prototype.bar = function () {
|
|
var _this = this;
|
|
(function () {
|
|
var obj = function () { }(_a = {}, _a[_this.bar()] = , _a);
|
|
var _a;
|
|
});
|
|
return 0;
|
|
};
|
|
return C;
|
|
})();
|