cache.js 689 B

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.scope = exports.path = undefined;
  4. var _weakMap = require("babel-runtime/core-js/weak-map");
  5. var _weakMap2 = _interopRequireDefault(_weakMap);
  6. exports.clear = clear;
  7. exports.clearPath = clearPath;
  8. exports.clearScope = clearScope;
  9. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10. var path = exports.path = new _weakMap2.default();
  11. var scope = exports.scope = new _weakMap2.default();
  12. function clear() {
  13. clearPath();
  14. clearScope();
  15. }
  16. function clearPath() {
  17. exports.path = path = new _weakMap2.default();
  18. }
  19. function clearScope() {
  20. exports.scope = scope = new _weakMap2.default();
  21. }