importDeferProxy.js 840 B

123456789101112131415161718192021222324252627
  1. function _importDeferProxy(e) {
  2. var t = null,
  3. constValue = function constValue(e) {
  4. return function () {
  5. return e;
  6. };
  7. },
  8. proxy = function proxy(r) {
  9. return function (n, o, f) {
  10. return null === t && (t = e()), r(t, o, f);
  11. };
  12. };
  13. return new Proxy({}, {
  14. defineProperty: constValue(!1),
  15. deleteProperty: constValue(!1),
  16. get: proxy(Reflect.get),
  17. getOwnPropertyDescriptor: proxy(Reflect.getOwnPropertyDescriptor),
  18. getPrototypeOf: constValue(null),
  19. isExtensible: constValue(!1),
  20. has: proxy(Reflect.has),
  21. ownKeys: proxy(Reflect.ownKeys),
  22. preventExtensions: constValue(!0),
  23. set: constValue(!1),
  24. setPrototypeOf: constValue(!1)
  25. });
  26. }
  27. module.exports = _importDeferProxy, module.exports.__esModule = true, module.exports["default"] = module.exports;