TypeScript/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js
2015-02-23 17:44:48 -08:00

30 lines
682 B
TypeScript

//// [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: {};