diff options
author | Peter Zhu <peter@peterzhu.ca> | 2024-06-18 10:07:27 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2024-06-18 14:21:37 -0400 |
commit | eb215c8dc659f810abc4d112c000a5778fbbe423 (patch) | |
tree | 79d2c2f5d9664d179988fc1d10b8b57699ca0548 /spec/ruby/core/exception/hierarchy_spec.rb | |
parent | b8a592fe6e2d1b537b229625cd3d439a7d5a6eb5 (diff) |
If a GC is ran before the assert_match, then the WeakMap would be empty
and would not have any objects, so the regular expression match would
fail. This changes the regular expression to work even if the WeakMap
is empty.
Diffstat (limited to 'spec/ruby/core/exception/hierarchy_spec.rb')
0 files changed, 0 insertions, 0 deletions