aboutsummaryrefslogtreecommitdiff
path: root/tools/js_optimizer.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-22 17:48:10 +0100
committerAlon Zakai <alonzakai@gmail.com>2012-11-22 17:48:10 +0100
commitf827c32ce78cd7aa3b9e9a1f8c326480d14f6119 (patch)
tree0d8918591486e66906c06ef4534cf1af7f625b7d /tools/js_optimizer.py
parenta2e9b91822f681a2ae6e745f72daf2d6f14d3f5c (diff)
fix bug in js optimizer on closured data
Diffstat (limited to 'tools/js_optimizer.py')
-rw-r--r--tools/js_optimizer.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py
index 4a782000..f67b8d5c 100644
--- a/tools/js_optimizer.py
+++ b/tools/js_optimizer.py
@@ -93,9 +93,6 @@ def run(filename, passes, js_engine, jcache):
parts = None
total_size = len(js)
js = None
- if not suffix: # if there is no metadata, we never see generated, and all funcs are in pre
- funcs = [('anonymous', code) for code in pre]
- pre = []
chunks = shared.JCache.chunkify(funcs, BEST_JS_PROCESS_SIZE, 'jsopt' if jcache else None)