2014-07-13 01:04:16 +02:00
|
|
|
//// [getterSetterNonAccessor.ts]
|
|
|
|
function getFunc():any{return 0;}
|
|
|
|
function setFunc(v){}
|
|
|
|
|
|
|
|
Object.defineProperty({}, "0", <PropertyDescriptor>({
|
|
|
|
get: getFunc,
|
|
|
|
set: setFunc,
|
|
|
|
configurable: true
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
//// [getterSetterNonAccessor.js]
|
2015-03-26 21:46:35 +01:00
|
|
|
function getFunc() { return 0; }
|
|
|
|
function setFunc(v) { }
|
2014-07-13 01:04:16 +02:00
|
|
|
Object.defineProperty({}, "0", ({
|
|
|
|
get: getFunc,
|
|
|
|
set: setFunc,
|
|
|
|
configurable: true
|
|
|
|
}));
|