From f0f71261b3c813caa5377e22a39aabe8b74712cc Mon Sep 17 00:00:00 2001 From: Klaas Cuvelier Date: Thu, 3 Dec 2015 14:19:35 +0100 Subject: [PATCH 1/3] Fix infinite recursion --- src/Declaration.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Declaration.js b/src/Declaration.js index 2b7556e..f7076f0 100644 --- a/src/Declaration.js +++ b/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(); From 3d8b03375cf5c35b7f3cb4d6596561a1fa1a1b4d Mon Sep 17 00:00:00 2001 From: Klaas Cuvelier Date: Thu, 3 Dec 2015 14:19:56 +0100 Subject: [PATCH 2/3] Ignore jetbrains idea folder --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 46d9d5d..9a979a1 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ dist _actual coverage .commithash +.idea \ No newline at end of file From 7d8e6b67aa09714b47c4639b252fee9ff7485ae8 Mon Sep 17 00:00:00 2001 From: Klaas Cuvelier Date: Thu, 3 Dec 2015 14:21:57 +0100 Subject: [PATCH 3/3] add a newline add the end --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9a979a1..15df9ff 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ dist _actual coverage .commithash -.idea \ No newline at end of file +.idea