aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-06-30 05:19:19 +0300
committermax99x <max99x@gmail.com>2011-06-30 05:19:19 +0300
commit7cecdd0d94570d502591fe1acfb17a701a05c698 (patch)
tree748f970add2b8da70e4fc09168a3bb57b1f6bf0c /src/library.js
parentdba00a5c7c028edfda20dcb79f625fc9f9744442 (diff)
parent0e9344a42800afd65b3c74c86e79ed78c15161f0 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index db76d39d..4f6af656 100644
--- a/src/library.js
+++ b/src/library.js
@@ -1466,7 +1466,17 @@ var Library = {
// ==========================================================================
- // dlfcn.h
+ // dlfcn.h - Dynamic library loading
+ //
+ // Some limitations:
+ //
+ // * Minification on each file separately may not work, as they will
+ // have different shortened names. You can in theory combine them, then
+ // minify, then split... perhaps.
+ //
+ // * LLVM optimizations may fail. If the child wants to access a function
+ // in the parent, LLVM opts may remove it from the parent when it is
+ // being compiled. Not sure how to tell LLVM to not do so.
// ==========================================================================
// Data for dlfcn.h.
@@ -1499,6 +1509,9 @@ var Library = {
try {
var lib_module = eval(lib_data)(FUNCTION_TABLE.length);
} catch (e) {
+#if ASSERTIONS
+ print('Error in loading dynamic library: ' + e);
+#endif
DLFCN_DATA.isError = true;
return 0;
}