Skip to content

Commit 7c17eb2

Browse files
authored
Merge pull request #151 from oliviertassinari/weakset
Replace Set with WeakSet for collecting removed paths
2 parents 4bd9ece + 497ae63 commit 7c17eb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default function(api) {
6969
const { template, types, traverse } = api
7070

7171
const nestedIdentifiers = new Set()
72-
const removedPaths = new Set()
72+
const removedPaths = new WeakSet()
7373
const collectNestedIdentifiers = {
7474
Identifier(path) {
7575
if (path.parent.type === 'MemberExpression') {

0 commit comments

Comments
 (0)