aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-13 21:48:49 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-12-13 21:48:49 -0800
commit86889d526ac498d8b612af20e47f59de32d2cd99 (patch)
tree268073455796a6f7d07a9bdf7639a3657b77842f /emscripten.py
parentfd718ccd54c73ebc4445228796de49e6c4302817 (diff)
fix typo
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index a0c9efc0..28ef16da 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -913,7 +913,7 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None,
Counter.i += 1
bad = 'b' + str(i)
params = ','.join(['p%d' % p for p in range(len(sig)-1)])
- coerced_params = ','.join([shared.JS.make_coercion('p%d', sig[i+1], settings) % p for p in range(len(sig)-1)])
+ coerced_params = ','.join([shared.JS.make_coercion('p%d', sig[p+1], settings) % p for p in range(len(sig)-1)])
coercions = ';'.join(['p%d = %s' % (p, shared.JS.make_coercion('p%d' % p, sig[p+1], settings)) for p in range(len(sig)-1)]) + ';'
def make_func(name, code):
return 'function %s(%s) { %s %s }' % (name, params, coercions, code)