diff options
author | tomoya ishida <tomoyapenguin@gmail.com> | 2023-10-12 22:55:41 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-10-12 13:55:47 +0000 |
commit | cf21c72cdbe9a9481925c978eccd211f7e9536ef (patch) | |
tree | a33cd373e143463fcc610b97a970b12c0226d77e /lib/irb/extend-command.rb | |
parent | e029375a7dc59897931fd3cfe334ffd4864f5049 (diff) |
[ruby/irb] Fix test runner exit bug
(https://github.com/ruby/irb/pull/728)
* Remove useless test setup and teardown that sets MAIN_CONTEXT to nil
* Avoid adding command methods to main object in test
https://github.com/ruby/irb/commit/f204829a08
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r-- | lib/irb/extend-command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb index cce7f8a4a7..514293a438 100644 --- a/lib/irb/extend-command.rb +++ b/lib/irb/extend-command.rb @@ -22,7 +22,7 @@ module IRB # :nodoc: # # Same as <code>IRB.CurrentContext.exit</code>. def irb_exit(ret = 0) - irb_context&.exit(ret) + irb_context.exit(ret) end # Displays current configuration. |