diff options
Diffstat (limited to 'lib/scope.js')
-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 01a67b7d..038dd640 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -216,6 +216,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options) { node.reference(options); }); if (old_def.lambda) new_def.lambda = true; + if (new_def.undeclared) self.variables.set(name, new_def); } }); |