aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xemscripten.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/emscripten.py b/emscripten.py
index cc68e7a4..07f1249e 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -648,9 +648,9 @@ function getTempRet%d() {
if not settings.get('SIDE_MODULE'):
funcs_js.append('''
-Runtime.stackAlloc = function(size) { return asm['stackAlloc'](size) };
-Runtime.stackSave = function() { return asm['stackSave']() };
-Runtime.stackRestore = function(top) { asm['stackRestore'](top) };
+Runtime.stackAlloc = asm['stackAlloc'];
+Runtime.stackSave = asm['stackSave'];
+Runtime.stackRestore = asm['stackRestore'];
Runtime.getTempRet0 = asm['getTempRet0'];
''')
@@ -1229,9 +1229,9 @@ function getTempRet0() {
if not settings.get('SIDE_MODULE'):
funcs_js.append('''
-Runtime.stackAlloc = function(size) { return asm['stackAlloc'](size) };
-Runtime.stackSave = function() { return asm['stackSave']() };
-Runtime.stackRestore = function(top) { asm['stackRestore'](top) };
+Runtime.stackAlloc = asm['stackAlloc'];
+Runtime.stackSave = asm['stackSave'];
+Runtime.stackRestore = asm['stackRestore'];
Runtime.getTempRet0 = asm['getTempRet0'];
''')