proxy-accessor.js 295 B

123456789
  1. var defineProperty = require('../internals/object-define-property').f;
  2. module.exports = function (Target, Source, key) {
  3. key in Target || defineProperty(Target, key, {
  4. configurable: true,
  5. get: function () { return Source[key]; },
  6. set: function (it) { Source[key] = it; }
  7. });
  8. };