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 8fc1ce0b..713a2c92 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -165,7 +165,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(){ for (var s = node.scope; s && !s.uses_eval; s = s.parent_scope) s.uses_eval = true; } - if (name == "arguments") { + if (func && name == "arguments") { func.uses_arguments = true; } } else { |