d928baf9d4
Conflicts: src/compiler/emitter.ts tests/baselines/reference/computedPropertyNames32_ES5.js tests/baselines/reference/computedPropertyNames33_ES6.js tests/baselines/reference/computedPropertyNames34_ES6.js tests/baselines/reference/computedPropertyNames35_ES5.js tests/baselines/reference/privateIndexer2.js
29 lines
693 B
JavaScript
29 lines
693 B
JavaScript
//// [computedPropertyNamesDeclarationEmit2_ES5.ts]
|
|
class C {
|
|
static ["" + ""]() { }
|
|
static get ["" + ""]() { return 0; }
|
|
static set ["" + ""](x) { }
|
|
}
|
|
|
|
//// [computedPropertyNamesDeclarationEmit2_ES5.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C["" + ""] = function () { };
|
|
Object.defineProperty(C, "" + "", {
|
|
get: function () { return 0; },
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(C, "" + "", {
|
|
set: function (x) { },
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
return C;
|
|
})();
|
|
|
|
|
|
//// [computedPropertyNamesDeclarationEmit2_ES5.d.ts]
|
|
declare class C {
|
|
}
|