diff options
author | Mihai Bazon <mihai@bazon.net> | 2013-05-22 13:08:19 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2013-05-22 13:08:19 +0300 |
commit | 9fc8a52142041b903b650923bb08b57876dd4c8c (patch) | |
tree | c11844eb88d839b5ff17ea0fafa9d6cd804f0f76 | |
parent | 22a038e6a23d1c1e8c5068b73f8af059521a6f2d (diff) | |
download | tracifyjs-9fc8a52142041b903b650923bb08b57876dd4c8c.tar.gz tracifyjs-9fc8a52142041b903b650923bb08b57876dd4c8c.zip |
Set "global" on undeclared SymbolDef-s
-rw-r--r-- | lib/scope.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/scope.js b/lib/scope.js index ea271639..d15cec75 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -187,6 +187,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(){ } else { g = new SymbolDef(self, globals.size(), node); g.undeclared = true; + g.global = true; globals.set(name, g); } node.thedef = g; |