aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-25 16:26:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-25 17:01:43 -0700
commit5041ed44a66938588e674b9f7c03b9281b99c4e1 (patch)
tree56b38137a84c785fceca153dd2379dd8bdcb7fcb /src/parseTools.js
parentca3f2f004d51268fbf3a9455d2f0c5569b15599d (diff)
simplify auto-return adding code, and make it generic so it can handle floats as well
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index f8d7e6ac..3489964f 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1197,7 +1197,7 @@ function asmEnsureFloat(value, type) { // ensures that a float type has either 5
}
}
-function asmInitializer(type, impl) {
+function asmInitializer(type) {
if (type in Runtime.FLOAT_TYPES) {
if (FROUND && type === 'float') return 'Math_fround(0)';
return RUNNING_JS_OPTS ? '+0' : '.0';