summaryrefslogtreecommitdiff
path: root/node_modules/@babel/traverse/lib/cache.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/traverse/lib/cache.js')
-rw-r--r--node_modules/@babel/traverse/lib/cache.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/node_modules/@babel/traverse/lib/cache.js b/node_modules/@babel/traverse/lib/cache.js
index 0455cfa0..79a41b9c 100644
--- a/node_modules/@babel/traverse/lib/cache.js
+++ b/node_modules/@babel/traverse/lib/cache.js
@@ -9,10 +9,8 @@ exports.clearScope = clearScope;
exports.getCachedPaths = getCachedPaths;
exports.getOrCreateCachedPaths = getOrCreateCachedPaths;
exports.scope = exports.path = void 0;
-let pathsCache = new WeakMap();
-exports.path = pathsCache;
-let scope = new WeakMap();
-exports.scope = scope;
+let pathsCache = exports.path = new WeakMap();
+let scope = exports.scope = new WeakMap();
function clear() {
clearPath();
clearScope();