aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-26 14:50:30 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-26 14:50:30 -0700
commit75bf333498ad87d0c830e6b5193ee0e6d682a27a (patch)
tree97dbb4680b81e41aff2582993fd351331f7560f2 /src/jsifier.js
parentc201ef75d84210b7c4fc924938e567db86aea349 (diff)
fix auto-returns after aborts in float-returning functions, and enable poppler in asm
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index ac8b263e..2c0332e3 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1460,7 +1460,7 @@ function JSify(data, functionsOnly, givenFunctions) {
if (ASM_JS) { // TODO: do only when needed (library functions and Math.*?) XXX && simpleIdent in Functions.libraryFunctions) {
ret = asmCoercion(ret, returnType);
if (simpleIdent == 'abort' && funcData.returnType != 'void') {
- ret += '; return 0'; // special case: abort() can happen without return, breaking the return type of asm functions. ensure a return
+ ret += '; return ' + asmCoercion('0', funcData.returnType); // special case: abort() can happen without return, breaking the return type of asm functions. ensure a return
}
}