cache.js 488 B

1234567891011121314151617181920212223242526
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.clear = clear;
  6. exports.clearPath = clearPath;
  7. exports.clearScope = clearScope;
  8. exports.scope = exports.path = void 0;
  9. let path = new WeakMap();
  10. exports.path = path;
  11. let scope = new WeakMap();
  12. exports.scope = scope;
  13. function clear() {
  14. clearPath();
  15. clearScope();
  16. }
  17. function clearPath() {
  18. exports.path = path = new WeakMap();
  19. }
  20. function clearScope() {
  21. exports.scope = scope = new WeakMap();
  22. }