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