TypeScript/tests/baselines/reference/objectLitGetterSetter.js
2014-07-12 17:30:19 -07:00

23 lines
550 B
TypeScript

//// [objectLitGetterSetter.ts]
var obj = {};
Object.defineProperty(obj, "accProperty", <PropertyDescriptor>({
get: function () {
eval("public = 1;");
return 11;
},
set: function (v) {
}
}))
//// [objectLitGetterSetter.js]
var obj = {};
Object.defineProperty(obj, "accProperty", ({
get: function () {
eval("public = 1;");
return 11;
},
set: function (v) {
}
}));