TypeScript/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js
2015-02-04 18:35:13 -08:00

32 lines
718 B
JavaScript

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