diff options
-rw-r--r-- | src/preamble.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js index 4b65a372..5057a883 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -732,7 +732,12 @@ function callRuntimeCallbacks(callbacks) { var callback = callbacks.shift(); var func = callback.func; if (typeof func === 'number') { - func = {{{ Functions.getTable('v') }}}[func]; // void() +#if ASM_JS + func = {{{ Functions.getTable('v') }}}[func] || // void() + {{{ Functions.getTable('vi') }}}[func]; // void(int) +#else + func = {{{ Functions.getTable('x') }}}[func]; +#endif } func(callback.arg === undefined ? null : callback.arg); } |