diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-09 14:19:40 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-09 14:19:40 -0800 |
commit | d87fad372b9d25bf889800e1956774ed3d289064 (patch) | |
tree | d4ae50bdd51025065cbf255f99baaaba4bd34862 | |
parent | d476f2690fbaa22702f3182e164c459a6faa67ab (diff) |
remove unneeded lines in output
-rw-r--r-- | src/jsifier.js | 1 |
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; } }); |