getBasicPropertyDescriptor.js 276 B

1234567891011121314
  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. };