aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 1bbd4d20..94f78134 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -199,7 +199,8 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) {
return ret;
} else {
if (item.external && BUILD_AS_SHARED_LIB) {
- // External variables in shared libraries should not be declared.
+ // External variables in shared libraries should not be declared as
+ // they would shadow similarly-named globals in the parent.
item.JS = '';
} else {
item.JS = 'var ' + item.ident + ';';