aboutsummaryrefslogtreecommitdiff
path: root/src/modules.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-31 22:29:43 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-03 14:41:31 -0700
commit2a29c25394abf9941f4a768a810c417f506e1678 (patch)
tree0dc413fd38c0c28ff339eb64d72f6c1a8f46aa19 /src/modules.js
parentf55d0566d4bcbe83edbeedbc1dca30817d7da9ce (diff)
do not eliminate supposedly stub functions in side modules, as they may be imported from the parent
Diffstat (limited to 'src/modules.js')
-rw-r--r--src/modules.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules.js b/src/modules.js
index fa6c0983..373e60d9 100644
--- a/src/modules.js
+++ b/src/modules.js
@@ -443,6 +443,7 @@ var LibraryManager = {
},
isStubFunction: function(ident) {
+ if (SIDE_MODULE == 1) return false; // cannot eliminate these, as may be implement in the main module and imported by us
var libCall = LibraryManager.library[ident.substr(1)];
return typeof libCall === 'function' && libCall.toString().replace(/\s/g, '') === 'function(){}'
&& !(ident in Functions.implementedFunctions);