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-02-07 05:03:24 +01:00
|
|
|
function getFunc() { return 0; }
|
2015-02-07 03:45:09 +01:00
|
|
|
function setFunc(v) { }
|
2014-07-13 01:04:16 +02:00
|
|
|
Object.defineProperty({}, "0", ({
|
|
|
|
get: getFunc,
|
|
|
|
set: setFunc,
|
|
|
|
configurable: true
|
|
|
|
}));
|