proxy-accessor.js 309 B

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