diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-18 19:19:10 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-18 19:19:10 -0800 |
commit | a039fa84f5ba66e89768817ff2d111d9cc0f5bf0 (patch) | |
tree | bfe3fe3e0e73cfe3bad5fc27078543b81179b399 /src | |
parent | 09642e9965d7fce59d76b36346e99083ff0d9768 (diff) |
fix function table wrapper coercions
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.js b/src/modules.js index 5e2b324e..a08d6f1a 100644 --- a/src/modules.js +++ b/src/modules.js @@ -304,7 +304,7 @@ var Functions = { var args = '', arg_coercions = '', call = curr + '(', ret = t[0] == 'v' ? '' : ('return ' + (t[0] == 'f' ? '+0' : '0')); for (var i = 1; i < t.length; i++) { args += (i > 1 ? ',' : '') + 'a' + i; - arg_coercions += 'a' + i + '=' + (i > 1 ? ';' : '') + asmCoercion('a' + i, t[i] == 'f' ? 'float' : 'i32'); + arg_coercions += 'a' + i + '=' + asmCoercion('a' + i, t[i] == 'f' ? 'float' : 'i32') + ';'; call += (i > 1 ? ',' : '') + asmCoercion('a' + i, t[i] == 'f' ? 'float' : 'i32'); } call += ')'; |