Overview
Excerpt |
---|
Adds a new accessor (getter/setter) or data (value) property to any object |
...
, setting it's enumerable, configurable and read-only flags as desired... |
Availability
...
...
try {
oObj.uAddProperty(nMask,sKey,vVal_fGet,fSet);
} catch(e) {
// likely a TypeError if an existing non-configurable property of the same sKey is defined
}
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Returns whatever Javascript's defineProperty method returns, or throws an error.
...
...
...
...
See also
...