function CreateProperty(O, P, Getter, Setter) { Object.defineProperty(O, P, { get: Getter, set: Setter }); } // CreateProperty // SAMPLE USAGE /* CreateProperty( testclass.prototype, 'TestProp', function() { console.log('TestProp Getter Called'); return this._testProp; }, function(value) { console.log('TestProp Setter Called With [' + value + ']'); this._testProp = value; } ); */