diff options
-rw-r--r-- | lib/scope.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scope.js b/lib/scope.js index 5f4a64a2..d926d4dc 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -203,7 +203,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(){ globals[name] = g; } node.thedef = g; - if (name == "eval") { + if (name == "eval" && tw.parent() instanceof AST_Call) { for (var s = node.scope; s && !s.uses_eval; s = s.parent_scope) s.uses_eval = true; } |