diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-22 14:13:00 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-22 14:13:00 -0800 |
commit | 534aa4a8ce66417f9579d72ac82ffb5a9c7b63ec (patch) | |
tree | 4d04566440560e7f22ff8256ec52c90dd9f2afd2 | |
parent | 0fd8b266fdb3a5e4f7679fb42a46b46500ce24ca (diff) |
comment
-rw-r--r-- | src/jsifier.js | 2 |
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')); |