diff options
author | Nobuhiro IMAI <nov@yo.rim.or.jp> | 2021-01-15 22:00:38 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-01-18 02:12:53 +0900 |
commit | d290a02bd7035eb186eb5c275af4e1ddc20ad47f (patch) | |
tree | b22ffc421fcc58973e9ad7670f3f1f0c613434aa /lib | |
parent | 3f0b4665df786990799c4cbac4de3a3cafb5e6bc (diff) | |
download | ruby-d290a02bd7035eb186eb5c275af4e1ddc20ad47f.tar.gz |
[ruby/irb] handle repeated exception separately
https://github.com/ruby/irb/commit/fcf6b34bc5
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index cf53130751..3f7f169c69 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -574,6 +574,8 @@ module IRB next end handle_exception(exc) + @context.workspace.local_variable_set(:_, exc) + exc = nil end end end |