From c65bba4e0d06db216c1176c4b02f98d816a9cfd7 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 8 Mar 2013 17:45:58 -0800 Subject: [PATCH] remove unnecessary semicolon; hello world minifies --- tools/js_optimizer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py index b5213ac3f..afbf1cc73 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