We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f7643b commit 5c56667Copy full SHA for 5c56667
index.js
@@ -1,14 +1,14 @@
1
'use strict';
2
3
-var Map = require('es6-map');
+var WeakMap = require('es6-weak-map');
4
5
6
module.exports = function (ast) {
7
return wrapNode(ast, null);
8
};
9
10
11
-var cache = new Map;
+var cache = new WeakMap;
12
13
function wrapNode (node, parent) {
14
if (cache.has(node)) {
package.json
@@ -30,7 +30,7 @@
30
"walk"
31
],
32
"dependencies": {
33
- "es6-map": "^0.1.1"
+ "es6-weak-map": "^2.0.1"
34
},
35
"devDependencies": {
36
"clone": "^1.0.2",
0 commit comments