2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames22_ES6.ts]
|
2015-01-17 04:15:24 +01:00
|
|
|
class C {
|
|
|
|
bar() {
|
|
|
|
var obj = {
|
|
|
|
[this.bar()]() { }
|
|
|
|
};
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames22_ES6.js]
|
2015-01-17 04:15:24 +01:00
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
C.prototype.bar = function () {
|
|
|
|
var obj = {
|
2015-02-07 03:45:09 +01:00
|
|
|
[this.bar()]() { }
|
2015-01-17 04:15:24 +01:00
|
|
|
};
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
return C;
|
|
|
|
})();
|