aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-08 17:45:58 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-08 17:45:58 -0800
commitc65bba4e0d06db216c1176c4b02f98d816a9cfd7 (patch)
tree5a89dc97769b78f02f1222114fa6572f6774c04d
parentf086eaa9beabfe409a0706315f4f738dc2bbcdab (diff)
remove unnecessary semicolon; hello world minifies
-rw-r--r--tools/js_optimizer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py
index b5213ac3..afbf1cc7 100644
--- a/tools/js_optimizer.py
+++ b/tools/js_optimizer.py
@@ -80,7 +80,7 @@ class Minifier:
#print >> sys.stderr, "minified SHELL 3333333333333333", output, "\n44444444444444444444"
code, metadata = output.split('// MINIFY_INFO:')
self.globs = json.loads(metadata)
- return output
+ return code
def serialize(self):
return json.dumps({
@@ -160,6 +160,7 @@ EMSCRIPTEN_FUNCS();
minifier = Minifier(js, js_engine)
asm_shell_pre, asm_shell_post = minifier.minify_shell(asm_shell).split('EMSCRIPTEN_FUNCS();');
+ asm_shell_post = asm_shell_post.replace('});', '})');
pre += asm_shell_pre
post = asm_shell_post + post