lib/contrast/agent/assess/policy/propagator/match_data.rb in contrast-agent-3.14.0 vs lib/contrast/agent/assess/policy/propagator/match_data.rb in contrast-agent-3.15.0

- old
+ new

@@ -65,21 +65,21 @@ private def square_bracket_single argument_index, preshift, return_value, propagation_node original_start_index = preshift.object.begin(argument_index) original_end_index = preshift.object.end(argument_index) - original_properties = preshift.object.cs__properties + original_properties = Contrast::Agent::Assess::Tracker.properties(preshift.object) applicable_tags = original_properties.tags_at_range(original_start_index...original_end_index) return if applicable_tags.empty? + return_properties = Contrast::Agent::Assess::Tracker.properties(return_value) applicable_tags.each do |tag_name, tag_ranges| - return_value.cs__properties.set_tags(tag_name, tag_ranges) + return_properties.set_tags(tag_name, tag_ranges) end - preshift.object.cs__properties.events.each do |event| - return_value.cs__properties.add_event(event) + original_properties.events.each do |event| + return_properties.add_event(event) end - return_value.cs__properties.build_event( - propagation_node, return_value, preshift.object, return_value, preshift.args) + return_properties.build_event(propagation_node, return_value, preshift.object, return_value, preshift.args) end end end end end