mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Make IRB::Context#exit call super if UncaughtThrowError
Fixes calling exit after binding.irb.
Fixes [Bug #18234]
4ea8d376f2
This commit is contained in:
parent
606e785fa8
commit
896626fa02
1 changed files with 2 additions and 0 deletions
|
@ -478,6 +478,8 @@ module IRB
|
|||
# Exits the current session, see IRB.irb_exit
|
||||
def exit(ret = 0)
|
||||
IRB.irb_exit(@irb, ret)
|
||||
rescue UncaughtThrowError
|
||||
super
|
||||
end
|
||||
|
||||
NOPRINTING_IVARS = ["@last_value"] # :nodoc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue