diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-26 16:43:27 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-03 14:41:29 -0700 |
commit | bfecccd0b34d065c6779186f21584abfb1dbf306 (patch) | |
tree | d08172fe5747979821bbb8908166a6361a8e18c6 /src/library.js | |
parent | 4ec26690083c3ded80d10f15fce3ced1bdca0b9f (diff) |
use addFunction in dlsym, and define F_BASE in side modules so they can run as shared libs
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/library.js b/src/library.js index 3e244c67..c160c785 100644 --- a/src/library.js +++ b/src/library.js @@ -5132,9 +5132,7 @@ LibraryManager.library = { } else { var result = lib.module[symbol]; if (typeof result == 'function') { - {{{ Functions.getTable('x') }}}.push(result); - {{{ Functions.getTable('x') }}}.push(0); - result = {{{ Functions.getTable('x') }}}.length - 2; + result = Runtime.addFunction(result); lib.cached_functions = result; } return result; |