aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-22 15:15:00 +0100
committerAlon Zakai <alonzakai@gmail.com>2012-11-22 15:15:00 +0100
commit09c376afeea6c74642c57fa19b13f714d2189a01 (patch)
tree006457bf7b935a6a85d668d7b3403e3adb013b11 /emscripten.py
parentf725733b1475788559ff1862e7007559c5d550bc (diff)
fix ll func identifying for chunking purposes, and add testing of jcache on a large program
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/emscripten.py b/emscripten.py
index aeef5f9a..ae3e671f 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -105,8 +105,7 @@ def emscript(infile, settings, outfile, libraries=[]):
if line.startswith(';'): continue
if line.startswith('define '):
in_func = True
- ident = shared.JS.to_nice_ident(line.split('(')[0].split(' ')[-1])
- funcs.append((ident, [line]))
+ funcs.append((line, [line])) # use the entire line as the identifier
pre.append(line) # pre needs it to, so we know about all implemented functions
elif line.find(' = type { ') > 0:
pre.append(line) # type