Browse Source

Fix infinite recursion

gh-335
Klaas Cuvelier 9 years ago
parent
commit
f0f71261b3
  1. 4
      src/Declaration.js

4
src/Declaration.js

@ -19,6 +19,8 @@ export default class Declaration {
this.isReassigned = false;
this.aliases = [];
this.isUsed = false;
}
addAlias ( declaration ) {
@ -53,6 +55,8 @@ export default class Declaration {
}
use () {
if ( this.isUsed ) return;
this.isUsed = true;
if ( this.statement ) this.statement.mark();

Loading…
Cancel
Save