aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
});