aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-10-25 17:34:00 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-10-25 17:34:00 -0700
commit5f7e38826d9394350a8242b6beea4e1a4cdfcde7 (patch)
tree019347ac40f30d3795852fcbb50721c9b81cb31b /tools
parentf780397c70ca74b233be6898608dd2a6db23bc5e (diff)
move dep invalidations clearing to correct position
Diffstat (limited to 'tools')
-rw-r--r--tools/js-optimizer.js2
1 files changed, 1 insertions, 1 deletions
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') {