2015-02-04 02:43:31 +01:00
|
|
|
//// [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 () {
|
2015-02-21 06:53:44 +01:00
|
|
|
var obj = (_a = {}, _a[_this.bar()] = function () { },
|
|
|
|
_a);
|
2015-02-05 03:35:04 +01:00
|
|
|
var _a;
|
2015-02-04 02:43:31 +01:00
|
|
|
});
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
return C;
|
|
|
|
})();
|