Skip to content

Commit 2527f4d

Browse files
st0012ko1
authored andcommitted
WatchBreakpoint's key should also take the object into account
1 parent fb7456e commit 2527f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/debug/breakpoint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class WatchIVarBreakpoint < Breakpoint
331331
def initialize ivar, object, current, cond: nil, command: nil
332332
@ivar = ivar.to_sym
333333
@object = object
334-
@key = [:watch, @ivar].freeze
334+
@key = [:watch, object.object_id, @ivar].freeze
335335

336336
@current = current
337337

0 commit comments

Comments
 (0)