diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-01 17:56:25 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:22 -0800 |
commit | e228b6fff29ff3448be4489356ee1c62be1a252b (patch) | |
tree | 7c5b474e7e24f7ee003cfba9069961db94d50784 | |
parent | f9e3b6eed3c4257c82d1353eb61af7217ddb5b9d (diff) |
fix getFuncWrapper
-rw-r--r-- | src/runtime.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime.js b/src/runtime.js index 3bb7ad30..341a0165 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -369,10 +369,9 @@ var Runtime = { getFuncWrapper: function(func, sig) { assert(sig); - var table = Runtime.getFunctionTable(sig); if (!Runtime.funcWrappers[func]) { Runtime.funcWrappers[func] = function() { - table[func].apply(null, arguments); + Runtime.dynCall(sig, func, arguments); }; } return Runtime.funcWrappers[func]; |