TypeScript/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js

24 lines
452 B
JavaScript
Raw Normal View History

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