diff options
author | Jeremy Evans <[email protected]> | 2021-10-06 08:55:29 -0700 |
---|---|---|
committer | git <[email protected]> | 2021-10-07 23:53:58 +0900 |
commit | 896626fa02f00831de5db2e3e75aa349a5a84102 (patch) | |
tree | d0a79256242a151854377ef28f29198c6ceeebda /lib/irb/context.rb | |
parent | 606e785fa8ec26c2819caca8b1f238e3ef5d8ff0 (diff) |
[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
Diffstat (limited to 'lib/irb/context.rb')
-rw-r--r-- | lib/irb/context.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb index 09fd840bd3..698378cc62 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -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: |