aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-03 18:31:38 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-07 14:23:22 -0800
commit1189e117b75850aa49ff6fad975d8b785e2fc4ec (patch)
tree4fb36788f752e2dd32add44c552b3f07758429ee /emscripten.py
parent93873761b2370bc9978e7c443dcffac5cdfc91a8 (diff)
improve asm test wrapping
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/emscripten.py b/emscripten.py
index 83ef740f..8ead6e58 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -267,9 +267,6 @@ def emscript(infile, settings, outfile, libraries=[]):
def blockaddrsize(js):
return re.sub(r'{{{ BA_([\w\d_$]+)\|([\w\d_$]+) }}}', lambda m: str(blockaddrs[m.groups(0)[0]][m.groups(0)[1]]), js)
- if settings.get('ASM_JS'):
- outfile.write('(function() {\n'); # prevent new Function from seeing the global scope
-
#if DEBUG: outfile.write('// pre\n')
outfile.write(blockaddrsize(indexize(pre)))
pre = None
@@ -388,9 +385,6 @@ Runtime.stackRestore = function(top) { asm.stackRestore(top) };
outfile.write(indexize(post))
if DEBUG: print >> sys.stderr, ' emscript: phase 3 took %s seconds' % (time.time() - t)
- if settings.get('ASM_JS'):
- outfile.write('}).apply(null, arguments);\n');
-
outfile.close()