TypeScript/tests/baselines/reference/computedPropertyNames23_ES5.js

24 lines
408 B
JavaScript

//// [computedPropertyNames23_ES5.ts]
class C {
bar() {
return 0;
}
[
{ [this.bar()]: 1 }[0]
]() { }
}
//// [computedPropertyNames23_ES5.js]
var C = (function () {
function C() {
}
C.prototype.bar = function () {
return 0;
};
C.prototype[(_a = {}, _a[this.bar()] =
1,
_a)[0]] = function () { };
return C;
})();
var _a;