TypeScript/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js

18 lines
595 B
JavaScript
Raw Normal View History

//// [computedPropertyNamesDeclarationEmit5_ES5.ts]
var v = {
["" + ""]: 0,
["" + ""]() { },
get ["" + ""]() { return 0; },
set ["" + ""](x) { }
}
//// [computedPropertyNamesDeclarationEmit5_ES5.js]
var v = (_a = {}, _a["" + ""] =
0, _a["" + ""] = function () { }, _a["" + ""] = Object.defineProperty({ get: function () { return 0; }, enumerable: true, configurable: true }), _a["" + ""] = Object.defineProperty({ set: function (x) { }, enumerable: true, configurable: true }),
_a);
var _a;
//// [computedPropertyNamesDeclarationEmit5_ES5.d.ts]
declare var v: {};