aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-23 18:01:54 -0700
committeralon@honor <none@none>2010-10-23 18:01:54 -0700
commitaf29458d537a001b641629993fc09814063e81ce (patch)
tree90d2ab7b5c146ef14a9b03524fcf605b5aa5af3b /src/jsifier.js
parente4b1cfc027f7e0ebb21a423d2bd763b17e9b88b3 (diff)
fix for invoke function calls not using function table
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index e73a5861..a5909344 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -579,7 +579,7 @@ function JSify(data) {
// Wrapping in a function lets us easily return values if we are
// in an assignment
var ret = '(function() { try { __THREW__ = false; return '
- + makeFunctionCall(item.ident, item.params) + ' '
+ + makeFunctionCall(item.ident, item.params, item.funcData) + ' '
+ '} catch(e) { '
+ '__THREW__ = true; '
+ (EXCEPTION_DEBUG ? 'print("Exception: " + e + " : " + (new Error().stack)); ' : '')
@@ -840,7 +840,7 @@ function JSify(data) {
}
}).map(indexizeFunctions);
- if (funcData && getVarData(funcData, ident)) {
+ if (getVarData(funcData, ident)) {
ident = 'FUNCTION_TABLE[' + ident + ']';
}