I can have a getter in a JavaScript object like this:
var member = { firstName:"XYZ", lastName:"zzz", get fullName(){ return
You can use the new Object.defineProperty this way:
Object.defineProperty( member, 'prop', { get: function() { return this.lastName.toUpperCase() } } );
In the past you had to use __defineGetter__ but now it has been deprecated.