lib/brakeman/processors/alias_processor.rb in brakeman-3.1.3 vs lib/brakeman/processors/alias_processor.rb in brakeman-3.1.4
- old
+ new
@@ -25,10 +25,11 @@
@current_module = nil
@tracker = tracker #set in subclass as necessary
@helper_method_cache = {}
@helper_method_info = Hash.new({})
@or_depth_limit = (tracker && tracker.options[:branch_limit]) || 5 #arbitrary default
+ @meth_env = nil
set_env_defaults
end
#This method processes the given Sexp, but copies it first so
#the original argument will not be modified.
@@ -61,10 +62,10 @@
rescue => err
@tracker.error err if @tracker
end
result = replace(exp)
-
+
@exp_context.pop
result
end