2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames29_ES6.ts]
|
2015-01-20 01:27:58 +01:00
|
|
|
class C {
|
|
|
|
bar() {
|
|
|
|
() => {
|
|
|
|
var obj = {
|
|
|
|
[this.bar()]() { } // needs capture
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames29_ES6.js]
|
2015-01-20 01:27:58 +01:00
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
C.prototype.bar = function () {
|
2015-01-27 23:27:51 +01:00
|
|
|
(() => {
|
2015-01-20 01:27:58 +01:00
|
|
|
var obj = {
|
2015-02-07 03:45:09 +01:00
|
|
|
[this.bar()]() { } // needs capture
|
2015-01-20 01:27:58 +01:00
|
|
|
};
|
|
|
|
});
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
return C;
|
|
|
|
})();
|