diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-11-24 10:02:08 +0200 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-11-24 10:02:08 +0200 |
commit | 13c4dfcabdd3e8597db6ecb09e2ac95fbae19195 (patch) | |
tree | a8c2d2427b1c1e032269260fbd72739839dfec68 /lib | |
parent | 1abde9c8b0aeef0ee5818821c2ca46a78eda2d59 (diff) | |
download | tracifyjs-13c4dfcabdd3e8597db6ecb09e2ac95fbae19195.tar.gz tracifyjs-13c4dfcabdd3e8597db6ecb09e2ac95fbae19195.zip |
fix #55
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ast.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -287,9 +287,9 @@ var AST_Toplevel = DEFNODE("Toplevel", "globals", { }, wrap_commonjs: function(name, export_all) { var self = this; + var to_export = []; if (export_all) { self.figure_out_scope(); - var to_export = []; self.walk(new TreeWalker(function(node){ if (node instanceof AST_SymbolDeclaration && node.definition().global) { if (!find_if(function(n){ return n.name == node.name }, to_export)) |