[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:
Jeremy Evans 2021-10-06 08:55:29 -07:00 committed by git
parent 606e785fa8
commit 896626fa02

View File

@ -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: