From 098010157b6a77c3770e74c426c7d01033b487d4 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 7 Mar 2017 13:23:02 +0100 Subject: [PATCH] fixed files form Closure #58 --- .../com/google/javascript/jscomp/LiveVariablesAnalysis.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/Closure/58/com/google/javascript/jscomp/LiveVariablesAnalysis.java b/projects/Closure/58/com/google/javascript/jscomp/LiveVariablesAnalysis.java index 7999db4..e107faa 100644 --- a/projects/Closure/58/com/google/javascript/jscomp/LiveVariablesAnalysis.java +++ b/projects/Closure/58/com/google/javascript/jscomp/LiveVariablesAnalysis.java @@ -203,8 +203,12 @@ private void computeGenKill(Node n, BitSet gen, BitSet kill, // for(var x in y) {...} lhs = lhs.getLastChild(); } + if (NodeUtil.isName(lhs)) { addToSetIfLocal(lhs, kill); addToSetIfLocal(lhs, gen); + } else { + computeGenKill(lhs, gen, kill, conditional); + } computeGenKill(rhs, gen, kill, conditional); } return;