From 5f7e38826d9394350a8242b6beea4e1a4cdfcde7 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 25 Oct 2012 17:34:00 -0700 Subject: move dep invalidations clearing to correct position --- tools/js-optimizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js index 1924cf2e..84bf9737 100644 --- a/tools/js-optimizer.js +++ b/tools/js-optimizer.js @@ -1512,13 +1512,13 @@ function eliminate(ast) { for (var i = 0; i < temp.length; i++) { delete tracked[temp[i]]; } - neededDepInvalidations.length = 0; } function check(node) { // checks a potential (var/assign) node for things that affect elimination. returns if ok to process this node //printErr('check ' + JSON.stringify(node)); var ok = true; needGlobalsInvalidated = false; needMemoryInvalidated = false; + neededDepInvalidations.length = 0; traverse(node, function(node, type) { if (type == 'assign') { if (node[2][0] == 'name') { -- cgit v1.2.3-18-g5258