aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index a83b2d3d..50824562 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1278,10 +1278,12 @@ function JSify(data, functionsOnly, givenFunctions) {
if (byPointer) {
var returnType = type.split(' ')[0];
+ var sig = Functions.getSignature(returnType, argsTypes);
if (ASM_JS) {
assert(returnType.search(/\("'\[,/) == -1); // XXX need isFunctionType(type, out)
+ ident = '(' + ident + ')&{{{ FTM_' + sig + ' }}}'; // the function table mask is set in emscripten.py
}
- ident = Functions.getTable(Functions.getSignature(returnType, argsTypes)) + '[' + ident + ']';
+ ident = Functions.getTable(sig) + '[' + ident + ']';
}
return ident + '(' + args.join(', ') + ')';