aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-15 21:35:30 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-15 21:35:30 -0800
commite14e6ea75cc7afb68e8be6c6994a1602250611ee (patch)
tree5f75a6c703f6ed750d36d39580b5707999a9e159
parent7600935358ca7b783f5803200b142b50f39ce17a (diff)
add todo
-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 4b1463eb..9391ff8e 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -2846,7 +2846,7 @@ function minifyLocals(ast) {
// Analyse the asmjs to figure out local variable names,
// but operate on the original source tree so that we don't
// miss any global names in e.g. variable initializers.
- var asmData = normalizeAsm(fun); denormalizeAsm(fun, asmData);
+ var asmData = normalizeAsm(fun); denormalizeAsm(fun, asmData); // TODO: we can avoid modifying at all here - we just need a list of local vars+params
var newNames = {};
var usedNames = {};