diff options
Diffstat (limited to 'src/modules.js')
-rw-r--r-- | src/modules.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules.js b/src/modules.js index 501ff22e..712d8a78 100644 --- a/src/modules.js +++ b/src/modules.js @@ -344,6 +344,9 @@ var Functions = { tables[t] = Functions.getTable(t) + '.push.apply(' + Functions.getTable(t) + ', [' + indices + ']);\n'; } else { tables[t] = 'var ' + Functions.getTable(t) + ' = [' + indices + '];\n'; + if (SAFE_DYNCALLS) { + tables[t] += 'var FUNCTION_TABLE_NAMES = ' + JSON.stringify(table).replace(/\n/g, '').replace(/,0/g, ',0\n') + ';\n'; + } } } if (!generated && !ASM_JS) { |