diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-04 16:36:07 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-04 16:36:07 -0700 |
commit | 6236b2d21d792d63c8691e858171910cbe2f79a4 (patch) | |
tree | c0da1282687595ccb6e677e04724c42dda22781d /src/jsifier.js | |
parent | c0408d39ab3022b2e3fac47318d9c055e83a2437 (diff) |
do not emit externals in side modules
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 8592364d..0bf484bc 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -338,6 +338,7 @@ function JSify(data, functionsOnly, givenFunctions) { // External variables in shared libraries should not be declared as // they would shadow similarly-named globals in the parent, so do nothing here. if (BUILD_AS_SHARED_LIB) return ret; + if (SIDE_MODULE) return []; // Library items need us to emit something, but everything else requires nothing. if (!LibraryManager.library[item.ident.slice(1)]) return ret; } |