You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add_method_tracer causes object arguments to be cloned.
Description
When tracing a method that takes an object argument that is supposed to be mutated during the execution of that method, the tracing causes the passed argument to be a clone of the object, meaning that any mutations are lost to outside references to the same object.
Expected Behavior
No cloning of arguments should happen and the passed object should be included in the call to the method as is.
add_method_tracer
causes object arguments to be cloned.Description
When tracing a method that takes an object argument that is supposed to be mutated during the execution of that method, the tracing causes the passed argument to be a clone of the object, meaning that any mutations are lost to outside references to the same object.
Expected Behavior
No cloning of arguments should happen and the passed object should be included in the call to the method as is.
Steps to Reproduce
Expected result:
Your Environment
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin19]
Additional context
It seems like this is not an issue in Ruby 2.6
The text was updated successfully, but these errors were encountered: