Skip to content

Commit

Permalink
Merge pull request #151 from oliviertassinari/weakset
Browse files Browse the repository at this point in the history
Replace Set with WeakSet for collecting removed paths
  • Loading branch information
lencioni committed Aug 23, 2018
2 parents 4bd9ece + 497ae63 commit 7c17eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -69,7 +69,7 @@ export default function(api) {
const { template, types, traverse } = api

const nestedIdentifiers = new Set()
const removedPaths = new Set()
const removedPaths = new WeakSet()
const collectNestedIdentifiers = {
Identifier(path) {
if (path.parent.type === 'MemberExpression') {
Expand Down

0 comments on commit 7c17eb2

Please sign in to comment.