You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
276 B

  1. 'use strict';
  2. module.exports = function getBasicPropertyDescriptor(name) {
  3. return {
  4. set: function(v) {
  5. this._setProperty(name, v);
  6. },
  7. get: function() {
  8. return this.getPropertyValue(name);
  9. },
  10. enumerable: true,
  11. configurable: true,
  12. };
  13. };