aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-18 19:25:53 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-18 19:25:53 -0800
commit6c32b689d351683b9a823ef83bef51aca0a8014b (patch)
treeac3cc0a0ad4c5d40268478b3abea5da943695999 /emscripten.py
parentd576a64f294d69201e4a8ecf22dfcc6a80ca03f0 (diff)
add Math.min in math envs, for now
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 d9cbf411..9c3fedef 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -325,7 +325,7 @@ def emscript(infile, settings, outfile, libraries=[]):
if settings['USE_MATH_IMUL']:
maths += ['Math.imul']
fundamentals = ['buffer', 'Int8Array', 'Int16Array', 'Int32Array', 'Uint8Array', 'Uint16Array', 'Uint32Array', 'Float32Array', 'Float64Array']
- math_envs = ['Runtime.bitshift64']
+ math_envs = ['Runtime.bitshift64', 'Math.min'] # TODO: move min to maths
asm_setup = '\n'.join(['var %s = %s;' % (f.replace('.', '_'), f) for f in math_envs])
basic_funcs = ['abort', 'assert', 'asmPrintInt', 'asmPrintFloat'] + [m.replace('.', '_') for m in math_envs]
basic_vars = ['STACKTOP', 'STACK_MAX', 'tempDoublePtr', 'ABORT']