[ruby/irb] Make IRB::Context#exit call super if UncaughtThrowError
Fixes calling exit after binding.irb. Fixes [Bug #18234] https://github.com/ruby/irb/commit/4ea8d376f2
This commit is contained in:
parent
606e785fa8
commit
896626fa02
@ -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…
x
Reference in New Issue
Block a user