aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-08 17:45:39 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-08 17:45:39 -0800
commitf086eaa9beabfe409a0706315f4f738dc2bbcdab (patch)
tree4eeb3114e1d5a3a8dc46365d8b9e213be05feb81
parent96f22dfe5820deb27a7428f22a5703a6a676b7f9 (diff)
minify function names in function definitions
-rw-r--r--tools/js-optimizer.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js
index 60414228..c3cb7f39 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -1416,6 +1416,8 @@ function registerize(ast) {
if (minified) node[1] = minified;
}
});
+ assert(fun[1] in minifierInfo.globals, fun[1]);
+ fun[1] = minifierInfo.globals[fun[1]];
}
if (asm) var asmData = normalizeAsm(fun);
// Add parameters as a first (fake) var (with assignment), so they get taken into consideration