aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-09 14:19:40 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-09 14:19:40 -0800
commitd87fad372b9d25bf889800e1956774ed3d289064 (patch)
treed4ae50bdd51025065cbf255f99baaaba4bd34862
parentd476f2690fbaa22702f3182e164c459a6faa67ab (diff)
remove unneeded lines in output
-rw-r--r--src/jsifier.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 2c0a1a88..522ef029 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -714,6 +714,7 @@ function JSify(data, functionsOnly, givenFunctions) {
func.JS += 'if (globalScope) { assert(!globalScope["' + func.ident + '"]); globalScope["' + func.ident + '"] = ' + func.ident + ' }';
}
+ func.JS = func.JS.replace(/\n *;/g, ''); // remove unneeded lines
return func;
}
});