_update.js 630 B

12345678910111213141516171819202122
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = _update;
  6. var _getMjs = _interopRequireDefault(require("./_get.js"));
  7. var _setMjs = _interopRequireDefault(require("./_set.js"));
  8. function _update(target, property, receiver, isStrict) {
  9. return {
  10. get _ () {
  11. return (0, _getMjs).default(target, property, receiver);
  12. },
  13. set _ (value){
  14. (0, _setMjs).default(target, property, value, receiver, isStrict);
  15. }
  16. };
  17. }
  18. function _interopRequireDefault(obj) {
  19. return obj && obj.__esModule ? obj : {
  20. default: obj
  21. };
  22. }