diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-09 09:28:54 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-09 09:28:54 -0800 |
commit | a43d5b5a146a4cfc654c2c1dbd05001e58977273 (patch) | |
tree | 6f667e0e1c53e1e540d92acf9fd9682788789dcd /tools/js_optimizer.py | |
parent | d4d5bdf5e12d0a0b1d1094edd4c048d8dfa1f0c1 (diff) |
do not emit generated functions suffix when no longer needed
Diffstat (limited to 'tools/js_optimizer.py')
-rw-r--r-- | tools/js_optimizer.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py index f8dfddf2..d089a989 100644 --- a/tools/js_optimizer.py +++ b/tools/js_optimizer.py @@ -171,6 +171,9 @@ EMSCRIPTEN_FUNCS(); minify_info = minifier.serialize() #if DEBUG: print >> sys.stderr, 'minify info:', minify_info + # remove suffix if no longer needed + if 'last' in passes: + post = post.split(suffix_marker)[0] else: pre = '' post = '' |