diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-26 19:47:21 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-26 19:47:21 -0500 |
commit | 4e78fcaed0b84a7b5414b659d88d818d0b2f837e (patch) | |
tree | 591622b5a6f48dfbfa02b528af4a7f37b3a488ea /src/jsifier.js | |
parent | bafdc889fcfcab5715e8dae5d26c3d5ff3160498 (diff) |
emit function table names in SAFE_DYNCALL mode
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 0e82a547..cb234061 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1403,7 +1403,7 @@ function JSify(data, functionsOnly, givenFunctions) { callIdent = '(' + callIdent + ')&{{{ FTM_' + sig + ' }}}'; // the function table mask is set in emscripten.py } else if (SAFE_DYNCALLS) { assert(!ASM_JS, 'cannot emit safe dyncalls in asm'); - callIdent = '(tempInt=' + callIdent + ',tempInt < 0 || tempInt >= FUNCTION_TABLE.length-1 || !FUNCTION_TABLE[tempInt] ? abort("dyncall error: ' + sig + '") : tempInt)'; + callIdent = '(tempInt=' + callIdent + ',tempInt < 0 || tempInt >= FUNCTION_TABLE.length-1 || !FUNCTION_TABLE[tempInt] ? abort("dyncall error: ' + sig + ' " + FUNCTION_TABLE_NAMES[tempInt]) : tempInt)'; } callIdent = Functions.getTable(sig) + '[' + callIdent + ']'; } |