aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-22 14:13:00 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-22 14:13:00 -0800
commit534aa4a8ce66417f9579d72ac82ffb5a9c7b63ec (patch)
tree4d04566440560e7f22ff8256ec52c90dd9f2afd2
parent0fd8b266fdb3a5e4f7679fb42a46b46500ce24ca (diff)
comment
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 71975b9d..c51d7ab9 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1511,7 +1511,7 @@ function JSify(data, functionsOnly, givenFunctions) {
print('// ASM_LIBRARY FUNCTIONS');
function fix(f) { // fix indenting to not confuse js optimizer
f = f.substr(f.indexOf('f')); // remove initial spaces before 'function'
- f = f.substr(0, f.lastIndexOf('\n')+1); // remove spaces and last }
+ f = f.substr(0, f.lastIndexOf('\n')+1); // remove spaces and last } XXX assumes function has multiple lines
return f + '}'; // add unindented } to match function
}
print(asmLibraryFunctions.map(fix).join('\n'));