aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js4
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;